next
|
previous
| forward |
backward
|
up
|
top
|
index
|
toc
|
home
Macaulay2
>
Function
Function -- the class of all functions
Description
Common ways to make a function:
->
-- make a function
Returning from functions:
return
-- return from a function
See also
functions
-- missing documentation
Types of function :
CompiledFunction
-- the class of all compiled functions
CompiledFunctionClosure
-- the class of all compiled function closures
FunctionClosure
-- the class of all function closures
Functions and methods returning a function :
Function @@ Function
-- composition of functions
Function _ Thing
-- missing documentation
List >> Function
-- attaching options to a function
OptionTable >> Function
-- attaching options to a function
profile(Function), see
profile
-- profile a function
Methods that use a function :
accumulate(Function,Thing,VisibleList)
accumulate(Function,VisibleList)
accumulate(VisibleList,Function)
accumulate(VisibleList,Thing,Function)
addHook(HashTable,Thing,Function)
-- add a hook function to an object for later processing
all(BasicList,BasicList,Function)
-- whether all corresponding elements of a pair of lists satisfy a condition
all(BasicList,Function)
-- whether all elements of a list satisfy a specified condition
all(HashTable,Function)
-- whether all key/value pairs in a hash table satisfy a specified condition
any(BasicList,BasicList,Function)
-- whether any corresponding elements of a pair of lists satisfy a condition
any(BasicList,Function)
-- whether any elements of a list satisfy a specified condition
any(HashTable,Function)
-- whether all key/value pairs in a hash table satisfy a specified condition
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}
applyKeys(HashTable,Function), see
applyKeys
-- apply a function to each key in a hash table
applyPairs(HashTable,Function), see
applyPairs
-- apply a function to each pair in a hash table
applyValues(HashTable,Function), see
applyValues
-- apply a function to each value
fold(Function,Thing,VisibleList)
fold(Function,VisibleList)
fold(VisibleList,Function)
fold(VisibleList,Thing,Function)
frames(Function), see
frames
-- get the frames associated to a closure
Function % Parser
-- transform the value returned by a parser
Function Thing
-- function application
installAssignmentMethod(Symbol,HashTable,Function), see
installAssignmentMethod
-- install methods assignment to the value of an operator
installAssignmentMethod(Symbol,HashTable,HashTable,Function), see
installAssignmentMethod
-- install methods assignment to the value of an operator
localDictionaries(Function), see
localDictionaries
-- get local dictionaries
locate(Function), see
locate
-- locate source code
map(ChainComplex,ChainComplex,Function)
-- make a map of chain complexes
map(GradedModule,GradedModule,Function), see
map(ChainComplex,ChainComplex,Function)
-- make a map of chain complexes
map(Module,Module,Function)
-- create a matrix by specifying a function which gives each entry
map(Module,ZZ,Function)
-- create a matrix from a free module by specifying a function which gives each entry
memoize(Function), see
memoize
-- record results of function evaluation for future use
memoize(Function,List), see
memoize
-- record results of function evaluation for future use
merge(HashTable,HashTable,Function)
-- merge hash tables
mergePairs(BasicList,BasicList,Function), see
mergePairs
-- merge sorted lists of pairs
methodOptions(Function)
-- recover the options used when a method function was created
new Command from Function
-- missing documentation
new Manipulator from Function
-- missing documentation
options(Function)
-- get optional arguments and default values for a function which accepts them
package(Function), see
package
-- get containing package
position(VisibleList,Function), see
position
-- find first element of a list satisfying a condition
position(VisibleList,VisibleList,Function)
-- find first element of a list satisfying a condition
positions(VisibleList,Function), see
positions
-- which elements of a list satisfy a condition
product(VisibleList,Function)
-- product of values of a function
product(VisibleList,VisibleList,Function)
-- product of results of applying a function pairwise
product(ZZ,Function)
-- product of consecutive values of a function
profile(String,Function), see
profile
-- profile a function
removeHook(HashTable,Thing,Function)
-- remove a hook function from an object
scan(BasicList,Function)
-- apply a function to each element of a list
scan(ZZ,Function)
-- apply a function to 0 .. n-1
scanKeys(Database,Function), see
scanKeys
-- apply a function to each key in a hash table or database
scanKeys(HashTable,Function), see
scanKeys
-- apply a function to each key in a hash table or database
scanPairs(HashTable,Function)
-- apply a function to pairs in a hash table
scanValues(HashTable,Function), see
scanValues
-- apply a function to each value in a hash table
select(BasicList,Function)
-- select elements from a list
select(HashTable,Function)
-- select pairs from a hash table
select(ZZ,BasicList,Function)
-- select a limited number of elements from a list
select(ZZ,HashTable,Function)
-- select a limited number of pairs from a hash table
sublists(VisibleList,Function), see
sublists
-- process interspersed sublists of a list
sublists(VisibleList,Function,Function), see
sublists
-- process interspersed sublists of a list
sublists(VisibleList,Function,Function,Function), see
sublists
-- process interspersed sublists of a list
sublists(VisibleList,Function,Function,Nothing), see
sublists
-- process interspersed sublists of a list
sublists(VisibleList,Function,Nothing), see
sublists
-- process interspersed sublists of a list
sublists(VisibleList,Function,Nothing,Function), see
sublists
-- process interspersed sublists of a list
sublists(VisibleList,Function,Nothing,Nothing), see
sublists
-- process interspersed sublists of a list
sum(VisibleList,Function)
-- sum results of applying a function
sum(VisibleList,VisibleList,Function)
-- sum results of applying a function pairwise
sum(ZZ,Function)
-- sum consecutive values of a function
Function \\ Thing, see
Thing // Function
-- apply a function
Thing // Function
-- apply a function
ultimate(Function,Thing), see
ultimate
-- ultimate value for an iteration
Function \ Tally, see
VisibleList / Function
-- apply a function to elements of a list
Function \ VisibleList, see
VisibleList / Function
-- apply a function to elements of a list
List / Function, see
VisibleList / Function
-- apply a function to elements of a list
Tally / Function, see
VisibleList / Function
-- apply a function to elements of a list
VisibleList / Function
-- apply a function to elements of a list
For the programmer
The object
Function
is
a
type
, with ancestor class
Thing
.