The way I'm currently working around it is with `->`, as in:
(-> my-map
(assoc-in [:a :b] 1)
(assoc-in [:c :d] 2)
(assoc-in [:e :f] 3))
fwiw the specific use-case for me was modifying the settings map for
`ring.middleware.defaults/wrap-defaults`.
On 06/30, Alex Miller wrote:
> Thinking about this for reals, I don't know how this would work with the
> current syntax which takes a sequence of keys that is the path:
>
> clojure.core/assoc-in
> ([m [k & ks] v])
>
> Are you suggesting:
> (assoc-in {} [:a :b :c] 1 *:d 4*)
>
> where :d 4 is the extra pair? I think that's unlikely to fly. You can
> accomplish the same thing now with update-in of course:
>
> (update-in {} [:a :b] assoc :c 1 :d 4)
> {:a {:b {:c 1, :d 4}}}
>
> I'm going to decline this ticket - I don't think it makes syntax with how
> assoc-in is currently defined after I've now thought about it more. But I'm
> still open to being persuaded. :)
>
> Alex
>
>
>
> On Mon, Jun 29, 2015 at 6:27 PM, Griffin Smith <
wildgr...@gmail.com>
> wrote:
>
> > Opened a JIRA ticket:
http://dev.clojure.org/jira/browse/CLJ-1771
> >
> >
> > On Sunday, June 28, 2015 at 9:24:03 PM UTC-4, Griffin Smith wrote:
> >>
> >> Was thinking it'd be cool to support multiple key(s)-value pairs in
> >> assoc-in just like assoc does. Are there any plans/open patches for this?
> >> If not I'd love to write it myself!
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Clojure Dev" group.
> > To unsubscribe from this group and stop receiving emails from it, send an
> > email to
clojure-dev...@googlegroups.com.
> > To post to this group, send email to
cloju...@googlegroups.com.
> > Visit this group at
http://groups.google.com/group/clojure-dev.
> > For more options, visit
https://groups.google.com/d/optout.
> >
>
> --
> You received this message because you are subscribed to a topic in the Google Groups "Clojure Dev" group.
> To unsubscribe from this topic, visit
https://groups.google.com/d/topic/clojure-dev/08ymJ_3Ln-E/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
clojure-dev...@googlegroups.com.