Closed gfx closed 13 years ago
I'd personally find these useful. How about having EVEN, ODD, FIRST, END as well :)
Yeah, they are already available in for-loops both in Kolon and TTerse :)
For example: : for $ary -> $iter { : $~iter.is_first; # true if in first : $~iter.lis_ast; # true if in last : $~iter.cycle(true, false); # true -> false -> true -> false ... : } See also http://search.cpan.org/dist/Text-Xslate/lib/Text/Xslate/Syntax/Kolon.pm#Loops
cool!
LAST, NEXT and REDO are requested, so they will be added in a future.