fakir/examples/set.fk

21 lines
185 B
Plaintext
Raw Normal View History

2023-09-22 12:17:21 +00:00
($ a 32)
(! a 54)
(assert= 54 a)
(:
($ a 12)
(! a 99)
(assert= 99 a)
)
(assert= 54 a)
($ f (-> (x) (+ 2 x)))
(assert= 5 (f 3))
(! f (-> (x) (* x 4)))
(assert= 12 (f 3))