Next: , Previous: Keyword Read Syntax, Up: Keywords


21.7.4 Keyword Procedures

The following procedures can be used for converting symbols to keywords and back.

— Scheme Procedure: symbol->keyword symbol

Return a keyword with the same characters as in sym.

— Scheme Procedure: keyword->symbol kw

Return a symbol with the same characters as in kw.

If module (ice-9 optargs-kw) is too heavyweight, you can use kw-arg-ref for basic functionality.

— Scheme Procedure: kw-arg-ref args kw

Return the element of list args immediately following kw, if available. Otherwise return #f.