Is it possible to create a map entry directly with the MapEntry type? I see in
the source code of CLJS that the type expects 3 parameters, key val and hash.
I've glanced quickly at usages and it seems most usages revolves to (MapEntry.
k v nil). Is it ok to use in app? Is it too low-level? I'd like to use it in
situations where I populate a map from vectors, like (silly example)
(into {} (map-indexed (fn [idx v] (MapEntry. idx val nil) [1 2 3]))
And what does it mean in cljc code ? Is this ok in Clojure too?
--
Note that posts from new members are moderated - please be patient with your
first post.
---
You received this message because you are subscribed to the Google Groups
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/clojurescript.