On Jun 4, 2010, at 11:15 , Joost wrote:

> On Jun 4, 7:37 am, "Heinz N. Gies" <[email protected]> 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]

Sorry I mixed arguments, it should be (update-in {1 2} [] (constantly {2 3})) 

-- 
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

Reply via email to