MakeFunction S
mkfunc.spad line 240 [edit on github]
transforms top-level objects into interpreter functions.
- function: (S, Symbol) -> Symbol
function(e, foo)
creates a function foo() == e
.
- function: (S, Symbol, List Symbol) -> Symbol
function(e, foo, [x1, ..., xn])
creates a function foo(x1, ..., xn) == e
.
- function: (S, Symbol, Symbol) -> Symbol
function(e, foo, x)
creates a function foo(x) == e
.
- function: (S, Symbol, Symbol, Symbol) -> Symbol
function(e, foo, x, y)
creates a function foo(x, y) = e
.