Or, without that:use List::Util qw(reduce); # unnecessary in in Perl 6 {grin} my @result = reduce { [$b->{@$a}] } [], @$agenda;
my @result; @result = $_->(@result) for @$agenda;
-- Randal L. Schwartz, Perl hacker
In reply to Re: Subroutine chaining idiom requested
by merlyn
in thread Subroutine chaining idiom requested
by princepawn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |