apply(a,f)

Applies function f to each entry of array (or matrix) a


See also sort reverse pop push 


Example


a = ( 2, 3, 4 )

2  3  4

f(x) = x*x

f(x) = x*x

apply( a, f )

4  9  16