Skip to content
Turtle Kitty edited this page Aug 9, 2015 · 4 revisions

opt

This operator accesses the optional arguments sent to a function.

(fun 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