next
|
previous
|
forward
|
backward
| up |
top
|
index
|
toc
|
home
apply -- apply a function to each element
Synopsis
Usage:
apply(L,f) or apply(L1,L2,f)
See also
applyKeys
-- apply a function to each key in a hash table
applyPairs
-- apply a function to each pair in a hash table
applyValues
-- apply a function to each value
applyTable
-- apply a function to elements of a table
mapping over lists
-- apply a function to each element of a list
Ways to use
apply
:
apply(BasicList,BasicList,Function)
-- apply a function to pairs of elements, one from each list
apply(BasicList,Function)
-- apply a function to each element of a list
apply(ZZ,Function)
-- apply a function to {0,..., n-1}