Yes – though that still only returns a fixed number of elements per evaluation. What about flattening data structures?
my @list = map @$_, @$lol;
I think that feature of map is one of the most useful things to have around for those occasions it’s called for.
Makeshifts last the longest.
In reply to Re^3: Unhappy returns
by Aristotle
in thread Unhappy returns
by tlm
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |