Anonymous user
Apply a callback to an array: Difference between revisions
→{{header|Perl 6}}
Line 1,775:
# via the "hyper" metaoperator and method indirection
say @array».&function;
# we neither need a variable for the array nor for the function
say [1,2,3]>>.&({ $^x + 1});
</lang>
=={{header|Phix}}==
|