Re: -> macro and accessing context

2013-07-02 Thread John D. Hume
I believe the intended idiom for as-> (and the reason it doesn't take a binding vector, like other forms that create locals) is (-> {} (assoc :a "a") (as-> ctx (assoc ctx :b (some-fn ctx On Jul 2, 2013 1:12 AM, "Meikel Brandmeyer (kotarak)" wrote: > Hi, > > since 1.5 there is > as->

Re: -> macro and accessing context

2013-07-01 Thread pmf
That looks like it can do the job; thanks! On Tuesday, July 2, 2013 8:12:04 AM UTC+2, Meikel Brandmeyer (kotarak) wrote: > > Hi, > > since 1.5 there is > as-> > : > > (as-> {} ctx > (assoc ctx :a "a") > (assoc ctx :b

Re: -> macro and accessing context

2013-07-01 Thread Meikel Brandmeyer (kotarak)
Hi, since 1.5 there is as->> : (as-> {} ctx (assoc ctx :a "a") (assoc ctx :b (some-fn ctx))) Kind regards Meikel -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To po