Creating multi-line alternatives
Sequences, cycles, and shuffles can be written using one single line of code. However, all alternatives can also be written using their multi-line form. For each of these, curly brackets are still used, but each element is on its own line with a dash, -
, appearing before it.
Multi-line cycles
To create a multi-line cycle, the keyword cycle
is used with a colon, :
, and with each element on its own line:
Example 7:
He flipped the calendar, looking at each month in turn. -> calendar == calendar + [Flip pages] He saw the month was <>{cycle: - January - February - March - April - May - June - July - August - September - October - November ...