in reply to Thoughts on some new operators for perl (6 or 7)
You shouldn't necessarily assume you have to loop at all.
Perl 6 also lets you take a junctional approach:
Or something like that...$lowest = one(@list_of_int) <= all(@list_of_int); $highest = one(@list_of_int) >= all(@list_of_int); $lowest = one(@list_of_int) le all(@list_of_string); $highest = one(@list_of_int) ge all(@list_of_string);
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Thoughts on some new operators for perl (6 or 7)
by lidden (Curate) on Mar 22, 2008 at 00:16 UTC | |
by TimToady (Parson) on Mar 22, 2008 at 23:20 UTC | |
by tye (Sage) on Mar 22, 2008 at 00:41 UTC |
In Section
Meditations