hm, looks even more broken in the context of these examples.
On Friday, July 18, 2014 5:04:34 AM UTC-7, Mike Fikes wrote:
>
> My guess: Perhaps this is a bug, or alternatively, a known issue that
> won't be addressed because to do so would be a breaking change.
>
> There is an old demo of Clojure given by Rich where MapEntry's were
> printed using some sort of un-readable notation #<:foo 5>. But clearly
> MapEntry's have been revised to act a lot like 2-element vectors.
>
> user=> (rseq (first (mapv identity {:foo 5})))
>
> (5 :foo)
>
> user=> (conj (first (mapv identity {:foo 5})) :x)
>
> [:foo 5 :x]
>
> user=> (assoc (first (mapv identity {:foo 5})) 1 7)
>
> [:foo 7]
>
> user=> (subvec (first (mapv identity {:foo 5})) 0 1)
>
> [:foo]
>
>
> FWIW, ClojureScript behaves in your expected way:
>
>
> (empty (first (mapv identity {:foo 5})))
>
> => []
>
--
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/d/optout.