#clojure tip, use letfn with threading macros for clarity, so instead of doing
(-> 5 (#(* 2 %)) (#(+ 5 %)) (#(/ % 7)))
you could write:
(letfn [(foo [x] (* 2 x))
(bar [x] (+ 5 x))
(baz [x] (/ x 7))]
(-> 5 foo bar baz))
-
-
yeah I use that trick as well
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.