Open SuzanneSoy opened 7 years ago
Add a threading macro. Possible features:
(~> x add1 sqrt) ≡ (<~ sqrt add1 x)
(~> 4 sqrt (+ 10)) ; => 12
(~> 16 (sqrt _) (/ _ 2) (/ 1 _)) ; => 1/2
Add a threading macro. Possible features:
(~> x add1 sqrt) ≡ (<~ sqrt add1 x)
(~> 4 sqrt (+ 10)) ; => 12
(~> 16 (sqrt _) (/ _ 2) (/ 1 _)) ; => 1/2