From 2019b49447579a564c3a193c1c788f51e30f8780 Mon Sep 17 00:00:00 2001 From: able Date: Fri, 3 May 2024 12:33:48 -0500 Subject: [PATCH] add some examples --- examples/lambda.lisp | 2 ++ examples/math.lisp | 4 ++++ 2 files changed, 6 insertions(+) create mode 100644 examples/lambda.lisp create mode 100644 examples/math.lisp diff --git a/examples/lambda.lisp b/examples/lambda.lisp new file mode 100644 index 0000000..7cd4c43 --- /dev/null +++ b/examples/lambda.lisp @@ -0,0 +1,2 @@ +(define a (λ () (+ 1 2 3))) +(a) \ No newline at end of file diff --git a/examples/math.lisp b/examples/math.lisp new file mode 100644 index 0000000..1fd1a67 --- /dev/null +++ b/examples/math.lisp @@ -0,0 +1,4 @@ +(+ 1 2 3 4 5 6 7 8 9 10) ; 55 +(- 10 9 8 7 6 5 4 3 2 1) ; -35 +(* 1 2 3 4 5 6 7 8 9 10) ; 3628800 +(/ 10 5) ; 2 \ No newline at end of file