fakir/examples/high_order.fk

4 lines
82 B
Plaintext

($ add (-> (x) (+ 1 x)))
($ twice (-> (f x) (f (f x))))
(assert= 6 (twice add 4))