[top][index]
search for:

options Function -- get optional arguments and defaults

Synopsis:

  • Function: options -- get options
  • Input:
  • an instance of class Function.
  • Output:
  • an instance of class OptionTable.
  • options f -- returns the table of option names and default values provided for the function f.

    Code:

         -- ../../../Macaulay2/m2/methods.m2:242-244
         options Function := OptionTable => function -> (
              if sameFunctionBody(function, optionFunction) then first frame function
              else null)

    [top][index]
    search for: