Welcome! Please see the About page for a little more info on how this works.

0 votes
in Clojure by

I couldn't find anything related in the Jira.

1 Answer

0 votes
by
selected by
 
Best answer

I don't recall, might just have been because partition is used less frequently than partition-all. I don't think there's any reason why it couldn't be.

by
`partition` has several arities. Removing coll from `(partition n step pad coll)` to create a transducer arity would collide with `(partition n step coll)`.  Maybe the transducer could be `(partition n step)`, but it would need to be distinguished at run-time from `(partition n coll)`.  In sum, `partition` is already wickedly complicated, introducing a transducer in the usual way would affect an existing arity, and if you're in shape to use a transducer anyway you can figure out how to get the job done with `partition-all`. ?
by
I don't think that's the question here. `partition-all` also has this issue, we just don't support the other arities for transducers in that case. `partition` could support at least one arity like we do with `partition-all`.
...