Name

defun*

Usage

special-form

Syntax

(defun* name (arg* [doc-string] form*) (. ".."))

Description

Defines a multi-arity function.

user 1 > (defun* f
             (() (self 0))
             ((x) (self x x))
             ((x y) (+ x y)))
it: f
user 2 > (f)
it: 0
user 3 > (f 3)
it: 6
user 4 > (f 3 4)
it: 7

See also

defun lambda lambda*