MapEntry in ClojureScript requires a third argument "__hash"
w9 opened this issue · 3 comments
w9 commented
tupelo/src/cljc/tupelo/core.cljc
Line 1207 in 63a3449
See https://cljs.github.io/api/cljs.core/MapEntry
Currently, the missing third argument gives a warning when compiled:
------ WARNING #1 - :fn-arity --------------------------------------------------
Resource: tupelo/core.cljc:1200:12
Wrong number of args (2) passed to cljs.core.MapEntry
--------------------------------------------------------------------------------
cloojure commented
Hmmm,
Looks like we could fix with this as the 3rd arg:
(hash-ordered-coll [key val])
???
frenchy64 commented
Since __hash
is mutable and filled in later, nil
might work better as the 3rd arg.
frenchy64 commented
Or even (first {k v})
might be a portable solution.