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)" <[email protected]> wrote:
> Hi,
>
> since 1.5 there is
> as-><http://clojure.github.io/clojure/clojure.core-api.html#clojure.core/as-%3E>
> :
>
> (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 post to this group, send email to [email protected]
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>
--
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.