Control

Useful control structures.

Summary
ControlUseful control structures.
(mosh control)Control structure library
Functions
aifanaphoric if
begin0Evaluates exp0, exp1, …, then returns the result(s) of exp0.
let1A convenient macro when you have only one variable.
:optional
let-optionals*

(mosh control)

Control structure library

Summary
Functions
aifanaphoric if
begin0Evaluates exp0, exp1, …, then returns the result(s) of exp0.
let1A convenient macro when you have only one variable.
:optional
let-optionals*

Functions

aif

anaphoric if

Prototype

(aif test consequent alternate)

Example

(aif 3 it 4) => 3

Parameters

testtest condition
consequentconsequent can contain it.
alternatealternate can contain it.

begin0

Evaluates exp0, exp1, …, then returns the result(s) of exp0.

Prototype

(begin0 exp0 exp1 ...)

let1

A convenient macro when you have only one variable.  Expanded as follows.

(let ((var expr)) body ...)

Prototype

(let1 var var body ...)

:optional

let-optionals*

Close