From c740ece288c3fb6f858a911222fd63caf95c4eea Mon Sep 17 00:00:00 2001 From: kartofen Date: Sun, 25 Aug 2024 15:46:56 +0300 Subject: lambda work, closures work, everything works --- files/test.l | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'files') 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) -- cgit v1.2.3