On Jun 4, 7:37 am, "Heinz N. Gies" <he...@licenser.net> wrote:
> Update-in behaves oddly when getting an empty path. (update-in [] {1 2} 
> (constantly {2 3})) returns {nil {2 3} 1 2} not {2 3} as I'd expect. get-in 
> works well with empty pathes so I think this isn't a good behavior.

I don't know why you expect that to do anything - first of all, the
second argument to update-in should be a seq of keys. In any case, it
throws

nth not supported on this type: PersistentArrayMap
  [Thrown class java.lang.UnsupportedOperationException]

-- 
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 posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to