Previous: Keyword Read Syntax, Up: Keywords


5.5.8.4 Keyword Procedures
— Scheme Procedure: keyword? obj
— C Function: scm_keyword_p (obj)

Return #t if the argument obj is a keyword, else #f.

— Scheme Procedure: keyword->symbol keyword
— C Function: scm_keyword_to_symbol (keyword)

Return the symbol with the same name as keyword.

— Scheme Procedure: symbol->keyword symbol
— C Function: scm_symbol_to_keyword (symbol)

Return the keyword with the same name as symbol.

— C Function: int scm_is_keyword (SCM obj)

Equivalent to scm_is_true (scm_keyword_p (obj)).

— C Function: SCM scm_from_locale_keyword (const char *str)
— C Function: SCM scm_from_locale_keywordn (const char *str, size_t len)

Equivalent to scm_symbol_to_keyword (scm_from_locale_symbol (str)) and scm_symbol_to_keyword (scm_from_locale_symboln (str, len)), respectively.