[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

6.14.13 map

map(function,arg0,arg1,...)
:: Applies a function to each member of a list or an array.

return
an object of the same type as arg0.
function
the name of a function
arg0
list, vector or matrix
arg1 ...
arbitrary (the rest of arguments)

 
[82] def afo(X) { return X^3; }
[83] map(afo,[1,2,3]);
[1,8,27]



This document was generated by root on March, 5 2004 using texi2html