next
|
previous
|
forward
|
backward
| up |
top
|
index
|
toc
|
Macaulay2 web site
Macaulay2Doc
::
apply
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 in a hash table
applyTable
-- apply a function to each element of a table
lists and sequences
-- a detailed overview of lists and sequences in Macaulay2
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}