FWIW map in Perl 6 supports last
$ perl6 -e 'my @out = (1..5).map: { $_ == 3 and last }; say @out.perl' Array.new(False, False)
In reply to Re: Short-circuiting a map list.
by moritz
in thread Short-circuiting a map list.
by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |