Data Types & Structs

  • Type checking
(typep foo 'string)
;; NIL
(typep foo 'integer)
;; T
  • The ' is just short hand for: (typep foo (quote string))
    • the quote escapes the data to be literal text like:
(quote (+ 1 2))
;; (+ 1 2)

'(+ 1 2)
;; (+ 1 2)