automat icon indicating copy to clipboard operation
automat copied to clipboard

reducer functions are called with coerced input

Open domkm opened this issue 11 years ago • 1 comments

(-> (a/interpose-$ :conj (vec "abc"))
    (a/compile {:reducers {:conj conj}})
    (a/find [] (seq "abc"))
    :value)
;=> [97 98 99]

(-> (a/interpose-$ :conj [\a :b "c"])
    (a/compile {:reducers {:conj conj}})
    (a/find [] [\a :b "c"])
    :value)
;=> [97 :b]

I don't know why 99/"c" is missing in the second example.

domkm avatar Sep 04 '14 13:09 domkm

This is fixed, at least in #16. These tests should probably be added once #16 is merged.

domkm avatar Jan 27 '15 20:01 domkm