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