Login
7 branches 0 tags
Ben (X13/Arch) Simplified things a little 0643405 9 days ago 1260 Commits
nujel / docs / stable / 1.5-symbols-keywords.md

[ 1.4 - Arithmetic | 1.6 - Variables ]


Symbols / Keywords

Keywords have to start, or end, with a single : character and are self-evaluating. They are a distinct type from symbols but can be easily converted.

:asd ; A keyword
; => :asd

asd: ; Another keyword
; => asd:

[= asd: :asd] ; It doesn't matter where we put the colon
; => #t

[= :asd [symbol->keyword 'asd]]
; => #t

[ 1.4 - Arithmetic | 1.6 - Variables ]