Macaulay2 » Documentation
Packages » Macaulay2Doc » The Macaulay2 language » Function » FunctionClosure
next | previous | forward | backward | up | index | toc

FunctionClosure -- the class of all function closures

Description

Functions created by the operator -> are function closures.
i1 : class (x->x)

o1 = FunctionClosure

o1 : Type

Menu

Types of function closure:

Methods that use a function closure:

  • disassemble(FunctionClosure) -- see disassemble -- disassemble a pseudocode or function
  • frames(FunctionClosure) -- see frames -- get the frames associated to a closure
  • localDictionaries(FunctionClosure) -- see localDictionaries -- get local dictionaries
  • pseudocode(FunctionClosure) (missing documentation)

Protected objects of class FunctionClosure:

  • addEndFunction -- add an ending function
  • ancestors -- the ancestors of something
  • applicationDirectory -- the path to the user's application directory
  • applyTable -- apply a function to each element of a table
  • baseFilename -- the base part of a filename or path
  • beginDocumentation -- start documentation section of a package
  • benchmark -- accurate timing of execution
  • cacheValue (missing documentation)
  • centerString -- center a string or net
  • columnate -- arrange strings in columns
  • currentPosition -- the current position in the current source file
  • demark -- insert a string between elements of a list of strings
  • End -- module of endomorphisms
  • error -- deliver error message
  • even -- tell whether an integer is even
  • first -- first element of a list
  • getNonUnit -- retrieve a previously discovered non-unit
  • getSymbol -- make a global user symbol from a string
  • globalAssign -- global assignment, in function form
  • globalAssignFunction -- the standard method for the global assignment hook
  • globalAssignment -- install standard global assignment method
  • globalReleaseFunction -- the standard method for the global variable release hook
  • input -- read Macaulay2 commands and echo
  • installedPackages
  • isPrimitive -- whether an element is a primitive element of a finite field
  • isTable -- whether something is a list of lists of equal length
  • last -- last element of a list
  • lines -- split a string into lines
  • load -- read Macaulay2 commands
  • memoizeClear -- see memoize -- record results of function evaluation for future use
  • memoizeValues -- see memoize -- record results of function evaluation for future use
  • method -- make a new method function
  • mod -- reduce modulo an integer
  • monomialCurveIdeal -- make the ideal of a monomial curve
  • needs -- read Macaulay2 commands if necessary
  • notImplemented -- print an 'not implemented' error message
  • number -- count how many elements of a list satisfy a condition
  • odd -- tell whether an integer is odd
  • on -- trace a function each time it's run
  • pager -- display with paging
  • peek -- examine contents of an object
  • print -- print something
  • printerr -- print something to stderr
  • same -- whether everything in a list is the same
  • seeParsing -- display parsing precedence table for Macaulay2 operators
  • showHtml -- see show -- display various objects in an external viewer
  • showTex -- see show -- display various objects in an external viewer
  • stashValue (missing documentation)
  • subtable -- extract a subtable from a table
  • synonym -- synonym for members of a class
  • table -- make a table from a binary function
  • temporaryFileName -- make a temporary file name
  • toAbsolutePath -- the absolute path version of a file name
  • toLower -- convert to lower case
  • toUpper -- convert to upper case
  • tutorial -- convert documentation from tutorial format
  • uniform -- whether all elements of a list are the same class
  • uninstallAllPackages
  • userSymbols -- a list of the user's symbols
  • zero -- whether something is zero

For the programmer

The object FunctionClosure is a type, with ancestor classes Function < Thing.


The source of this document is in Macaulay2Doc/ov_methods.m2:243:0.