I am trying to create a map from a list of 2-element Subvecs.
This works fine in Clojure:
(into {} (list (subvec [1 2 3] 1)))
>> {2 3}
But crashing in ClojureScript with the following error:
No protocol method IMapEntry.-key defined for type number: 2
Replacing (subvec [1 2 3] 1)with [2 3]does the job in both languages.
I am new to ClojureScript and cannot find where this behavior is documented. This is mistake? And how would you suggest effectively circumventing it?
Thank!
source
share