Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

reducer functions are called with coerced input#9

Open
domkm wants to merge 1 commit intoztellman:masterfrom
domkm:coercion
Open

reducer functions are called with coerced input#9
domkm wants to merge 1 commit intoztellman:masterfrom
domkm:coercion

Conversation

@domkm
Copy link
Copy Markdown
Contributor

@domkm domkm commented Sep 4, 2014

(-> (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
Copy link
Copy Markdown
Contributor Author

domkm commented Jan 27, 2015

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant