for(;;) loop:
for (var i = 10; i >= 0; i--) { say i }
for-in loop:
for i in (11 ^.. 0) { say i }
.each method:
10.downto(0).each { |i| say i }
Last updated 10 months ago