Skip to content
TurtleKitty edited this page May 11, 2019 · 3 revisions

opt

This dynamic variable accesses the optional arguments sent to a procedure.

(proc foo ()
    (list opt.x opt.y opt.z))

(foo x: 1 y: 2 z: 3) ; (1 2 3)
(foo x: 1 y: 2)      ; (1 2 null)
(foo)                ; (null null null)
Clone this wiki locally