map

map(x, callback)

Create a new matrix or array with the results of the callback function executed on each entry of the matrix/array.

Try it yourself:

See also:
All functions