On Fri, Mar 25, 2011 at 8:21 AM, Meikel Brandmeyer wrote:
> Ah. There it is again: the classic.
> http://groups.google.com/group/clojure/browse_thread/thread/66ff0b89229be894/c3d4a6dae45d4852
It goes back further:
http://clojure-log.n01se.net/date/2008-04-14.html#22:10- 23:07
In fact, I would gu
This comes in handy for me when I'm dealing with side-effects but can't use
doto:
(defmacro do-with [[binding-form init-expr] & body]
"Evaluates body with binding-form bound to the value of init-expr, then
yields that same value."
`(let [~binding-form ~init-expr]
~@body
~
Ah. There it is again: the classic.
http://groups.google.com/group/clojure/browse_thread/thread/66ff0b89229be894/c3d4a6dae45d4852
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that p
Hi,
I'm interested in useful utility which you create.
Please show me your favorite utility.
For example, _-> is that for me.
_-> is like ->, but it can insert expression in arbitrary place by
marking underscore.
(_-> :a (assoc {} _ 1))
;=> {:a 1}
Therefore It can unify -> and ->> behavior.
https: