4 ms·
Extension methods were a welcome addition back when I was doing C# work, but today, I much prefer the approach employed by Clojure. Clojure provides two "arrow
by snprbob86 14y ago
Extension methods were a welcome addition back when I was doing C# work, but today, I much prefer the approach employed by Clojure.
Clojure provides two "arrow" Macros called -> and ->>. The former transforms (-> x (f 1) g) into (g (f x 1)) and the latter transforms (->> x (f 1) g) into (g (f 1 x)).