Sy

Symbols in Common Lisp

1 exercise

About Symbols

;; Returning a symbol from a `defun`
(defun gimme-foo () 'foo)
(gimme-foo) ; => FOO

;; The same, but as a keyword
(defun gimme-bar () :bar)
(gimme-bar) ; => :BAR
Edit via GitHub The link opens in a new window or tab

Learn Symbols