about summary refs log tree commit diff stats
path: root/readme.txt
blob: 20b41cf44c61e035308fa5a4f303d5e3d2a6b1a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
lam --- a lisp in lua
by C. Duckworth

lam(n.) -- where you go when a scheme goes bad

major work in progress. as of right now ( 2024-02-21 ):
- (define sq (lambda (x) (* x x)))

(sq 4) ;=> 16
(sq (sq 4)) ;=> 256

- (define rep (lambda (f) (lambda (x) (f (f x)))))

((rep sq) 4) ;=> ERROR -- trying to call a string value (Symbol, I think, x)

sad face.

however, +, *, all math.* functions and constants, begin, define, work.

apply also works, i'm pretty sure. scheme-style.(was up late last night, think i got that in)

contributions/help WELCOME!