clisp/README.md
2024-09-10 19:55:02 +09:00

261 B

  • see lib/lib.lisp

  • (define fac (lambda (n) (if (== n 0) 1 (* n (fac (+ n -1))))))

  • macro

    (macro and (expr . rest)
        (if rest (list 'if expr (cons 'and rest)) expr))

    (and (== 1 1) (== 0 0) (if nil nil 1) (+ 100 100))
    (and ())