keithlisp/doc/stdlib_forms.md

727 B

Special Forms

Special forms are constructs that Keithlisp evaluates differently from other S-expressions.

quote

quote form

quote returns form as-is, without performing any evaluation on it.

cond

cond {(test {body-form}*)}*

cond is Keithlisp's basic conditional operator. It consists of zero or more clauses (a test, followed by zero or more body-forms).

cond evaluates the test of each clause in order. If the result is non-nil, cond skips all remaining clauses, evaluates each body-form, and returns the result of the last one (or the result of test if the clause has no body-forms). Otherwise, if all tests evaluate to nil, or no clauses were given, cond returns nil.