(def c (fn () "llisp is (c) Fabian Bergström 2021, https://opensource.org/licenses/MIT"))
(def thanks (fn () "Thanks, Mary Rose Cook: https://github.com/maryrosecook/littlelisp"))
; let's define some standard functions
(def inc (fn (x) (+ x 1)))
; this is annoying ... we need a macro
(defmacro defn (fn (name params body) `(def ,name (fn ,params ,body))))
(defn dec (x) (- x 1))
; much nicer!
(def nil '())
(defn nil? (l) (= nil l))
(defn map (f l) (if (= l '()) l (cons (f (car l)) (map f (cdr l)))))
>