diff options
author | kartofen <mladenovnasko0@gmail.com> | 2024-08-25 15:46:56 +0300 |
---|---|---|
committer | kartofen <mladenovnasko0@gmail.com> | 2024-08-25 15:46:56 +0300 |
commit | c740ece288c3fb6f858a911222fd63caf95c4eea (patch) | |
tree | 860b3e15260b9f1cf6abc3c1f26d586c4ffdcd85 /files/test.l | |
parent | 54f071ac7d47ef515a3f6a4db9e83f2f9aca3c8c (diff) |
lambda work, closures work, everything works
Diffstat (limited to 'files/test.l')
-rw-r--r-- | files/test.l | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/files/test.l b/files/test.l index 65707ed..d9e9acc 100644 --- a/files/test.l +++ b/files/test.l @@ -1,6 +1,5 @@ -(lambda (a b) (blah kajflkj foo bar)) +(define make-add (lambda (a) (lambda (b) (+ a b)))) +(define add4 (make-add 4)) +(add4 5) -(define a 69) -'(sn ,(+ a 1)) -(define a 70) -'(sn ,(+ a 1)) +'(a b ,((lambda (a) '(test . ,a)) 69) c d) |