Previous: , Up: Symbols   [Contents][Index]


5.6.7 Keyword Symbols

Keywords are a special class of symbols. They evaluate to themselves, and have the read syntax ‘#:symbol’, where symbol is anything satisfying the usual symbol syntax. These objects are normally used to mark keyword parameters in function applications (see Lambda Expressions).

Function: make-keyword symbol

Return the keyword symbol that could be used to mark an argument value for the keyword parameter symbol.

(make-keyword 'x)
    ⇒ #:x
Function: keywordp arg

Returns true if arg is a keyword symbol.