Clojurians
#cljs-dev
<
2017-12-02
>

This page is not created by, affiliated with, or supported by Slack Technologies, Inc.

mfikes00:12:37

^ Patch attached to CLJS-2426. Looks fairly cut-n-dry.

richiardiandrea01:12:12

Could you expand on this? I am interested :) Isn't into the same thing as a transducer in clj? Does the current cljs implementation varies from it clj?

rauh06:12:31

@richiardiandrea I can't do (into (array) xf xs) since the array isn't a) EditableCollection b) Works with conj. So I have to do a manual transduce with a custom array reducer.

rauh06:12:24

Of course you could hack it with (extent-type array ICollection (conj...)) but I don't like modifying that.

rauh07:12:04

Looks like iterator-seq is missing in CLJS.

thheller08:12:26

@rauh there is es6-iterator-seq

rauh08:12:06

@thheller Oh I see. Thanks

rauh08:12:59

FWIW: (seq "on a string") uses IndexedSeq which looks up values by array access which isn't really compatible with all browser (it should use .charAt). That's why I was looking for (iterator-seq ..) since it could be a workaround (iterator-seq (iter "some-string")) would work properly.

thheller08:12:24

also a review of this would be neat. I’m pretty sure its correct but you know more abouts tags https://dev.clojure.org/jira/browse/CLJS-2385

dnolen14:12:04

@thheller will take a look thanks