Where currently you require multiple lines with explicit flow control statements:
: for item in items
: if item % 2 == 0
: continue
: end
Permit inclusion of filtering conditions (one or more) in the form:
: for item in items if item % 2
There are several avenues for translation to plain Python for these. Unwrap and reconstruct the multiple-line form, or alternatively wrap in a generator comprehension:
Where currently you require multiple lines with explicit flow control statements:
Permit inclusion of filtering conditions (one or more) in the form:
There are several avenues for translation to plain Python for these. Unwrap and reconstruct the multiple-line form, or alternatively wrap in a generator comprehension: