Apply a callback to an array: Difference between revisions

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