Loops/With multiple ranges: Difference between revisions

Content added Content deleted
m (→‎{{header|Perl 6}}: a little exposition)
m (→‎{{header|Perl 6}}: clarification)
Line 396: Line 396:
=={{header|Perl 6}}==
=={{header|Perl 6}}==


This task is really conflating things, (at least in Perl 6). Sequences and loops are two different concepts and may be considered / implemented separately from each other.
This task is really conflating two separate things, (at least in Perl 6). Sequences and loops are two different concepts and may be considered / implemented separately from each other.


Yes, you can generate a sequence with a loop, and a loop can use a sequence for an iteration value, but the two are somewhat orthogonal and don't necessarily overlap.
Yes, you can generate a sequence with a loop, and a loop can use a sequence for an iteration value, but the two are somewhat orthogonal and don't necessarily overlap.