Loops/Wrong ranges: Difference between revisions
Content added Content deleted
Langurmonkey (talk | contribs) |
Thundergnat (talk | contribs) m (→{{header|Raku}}: Minor fix for recent rule change for stricter caching of sequences) |
||
Line 1,140: | Line 1,140: | ||
# Start with an array, iterate by rotating, end when 0 is in the last place. |
# Start with an array, iterate by rotating, end when 0 is in the last place. |
||
say [0,1,2,3,4,5], *.rotate(-1) … !*.tail; |
say [0,1,2,3,4,5], *.rotate(-1).Array … !*.tail; |
||
# Iterate strings backwards. |
# Iterate strings backwards. |