get-keyword

[procedure] get-keyword keyword arglist [thunk]

Chicken: searches arglist for keyword and returns the corresponding value. If keyword is not found, call thunk and uses its return value, or #f if thunk is not provided.

[procedure] get-keyword keyword arglist [default]

STk, Gauche: searches arglist for keyword and returns the corresponding value. If keyword is not found, default is returned if provided, otherwise signals an error.

Gauche's get-keyword* allows not to evaluate default unless necessary.

STklos has key-get, with different argument order.

See also let-keywords, let-keywords*.