2024-08-18 19:01:40 +00:00
|
|
|
;; Check that lambdas can be passed as arguments
|
|
|
|
|
2024-08-23 21:21:00 +00:00
|
|
|
((fn (f y) (f y))
|
|
|
|
(fn (x) (* x x))
|
2024-08-22 16:21:05 +00:00
|
|
|
2)
|
|
|
|
|
2024-08-23 21:21:00 +00:00
|
|
|
(((fn (x)
|
|
|
|
(fn () (* x x 2)))
|
2024-08-22 16:21:05 +00:00
|
|
|
2))
|
2024-08-23 21:21:00 +00:00
|
|
|
|
|
|
|
|
|
|
|
(fn foo (x y) (* x y))
|