[top][index]
search for:

addEndFunction -- add an ending function

addEndFunction (() -> ...) -- record a function for later execution, when the program is exited.

See also:

  • runEndFunctions -- run the ending functions
  • Code:

         -- ../../../Macaulay2/m2/classes.m2:95-97
         addEndFunction = g -> (
              endFunctions = append(endFunctions,g);
              g)

    [top][index]
    search for: