Keywords are symbolic constants which evaluate to themselves. A keyword must begin with a colon.
`=̀13`(ndexfile(index-entry "keyword?" "tt" main )keyword?obj) procedure
Returns #t if obj is a keyword, otherwise returns #f.
`=̀13`(ndexfile(index-entry "make-keyword" "tt" main )make-keywordobj) procedure
Builds a keyword from the given obj. obj must be a symbol
or a string. A colon is automatically prepended.
unspecified
error
makeotherˆ`=̀13`
gobblecr(make-keyword "test") :test(make-keyword 'test) :test(make-keyword ":hello") ::hello
`=̀13`(ndexfile(index-entry "keyword->string" "tt" main )keyword->stringkeyword) procedure
Returns the name of keyword as a string. The leading colon is
included in the result.
unspecified
error
makeotherˆ`=̀13`
gobblecr(keyword->string :test) ":test"
`=̀13`(ndexfile(index-entry "get-keyword" "tt" main )get-keywordkeyword list) procedure
`=̀13`(ndexfile(index-entry "get-keyword" "tt" main )get-keywordkeyword list default) procedure
List must be a list of keywords and their respective values.
ndexfile(index-entry "Get-keyword" "tt" aux )Get-keyword scans the list and returns the value
associated with the given keyword. If the keyword does
not appear in an odd position in list, the specified
default is returned, or an error is raised if no default was
specified.
unspecified
error
makeotherˆ`=̀13`
gobblecr(get-keyword :one '(:one 1 :two 2)) 1(get-keyword :four '(:one 1 :two 2) #f) #f(get-keyword :four '(:one 1 :two 2))