Skip to content

Instantly share code, notes, and snippets.

@itsbth
Created July 3, 2015 22:27
Show Gist options
  • Save itsbth/ccaeb07baa75446f086e to your computer and use it in GitHub Desktop.
Save itsbth/ccaeb07baa75446f086e to your computer and use it in GitHub Desktop.
SEXP (display "Hello, World!")
Hello, World!
SEXP (def greet (lambda (who) (cat "Hello, " who "!")))
SEXP (display (greet "Martiny"))
Hello, Martiny!
SEXP (display "a")
a
SEXP (display "b")
b
SEXP ()
SEXP (def addn (lambda (n) (lambda (x) (+ x n))))
SEXP (let ((add5 (addn 5))) (display (add5 10)))
15
SEXP (if (= 1 1) (display "True") (display "False"))
True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment