Fork me on GitHub
#missionary
<
2021-11-24
>
ribelo21:11:38

I found either a bug or an error in the docstring/documentation

ribelo21:11:10

eduction takes multiple functions and one flow, while the documentation says the opposite

ribelo21:11:52

(mi/? (mi/reduce conj (mi/eduction (map (fn [& args] args)) (map (fn [& args] args)) (mi/seed (range 3)))))
;; => [((0)) ((1)) ((2))]
(mi/? (mi/reduce conj (mi/eduction (map (fn [& args] args)) (mi/seed (range 3)) (mi/seed (range 3)))))
;; => Wrong number of args (1) passed to: missionary.core/seed/fn--17771

leonoel21:11:43

good catch, the doc is wrong

leonoel21:11:09

the signature should match clojure.core/eduction

ribelo21:11:57

you're welcome

ribelo21:11:31

at least that's what I can do for now, find little things like this

ribelo21:11:59

@U053XQP4S put an issue on the GH or is there no need?

leonoel21:11:46

no need, I'll do that tomorrow