You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
m = require "mori"
console.log m.flatten([1, [2], 3])
The flatten example in the documentation shows it needs its argument to be converted with js_to_clj first--are there any plans to make flatten work with native arrays?
Thanks,
Stu
The text was updated successfully, but these errors were encountered:
Hmm, this is an interesting edge case I've never encountered myself. It looks like this behavior has been preserved from Clojure on the JVM. The issue is that we call tree-seq on the argument expecting nodes containing branches to satisfy sequential? which host primitive arrays do not. I wonder if sequential? shouldn't be extended to include host primitive arrays both in ClojureScript and Clojure. I'll ask around.
I have this CoffeeScript usage of mori.flatten:
The
flatten
example in the documentation shows it needs its argument to be converted withjs_to_clj
first--are there any plans to make flatten work with native arrays?Thanks,
Stu
The text was updated successfully, but these errors were encountered: