Comment Comment by dustingetz > This is a way to unify all these abstractions so that you can write a single map/filter/concat transform once, and use it in many different ways.I don't understand why these things aren't all unified in the first place, it's just function composition we're talking about here right?Edit: I mean it's clearly not just simple function composition, but I don't understand why not (def xform (comp (map inc) (filter even?))) ; xform is a transducer (defn xform [aseq] (->> aseq (map inc) (filter even?))) ; xform is a fn Why do these have to be different things? Why is there a need for machinery to do what fn composition is supposed to do? parent dustingetz 12 years ago
I don't understand why these things aren't all unified in the first place, it's just function composition we're talking about here right?
Edit: I mean it's clearly not just simple function composition, but I don't understand why not
Why do these have to be different things? Why is there a need for machinery to do what fn composition is supposed to do?