Open treeowl opened 9 years ago
This issue hasn't seen any activity in a long time, and it's not clear to me what related work is being referenced.
@treeowl If this is still relevant, could you clarify what should be done? If the export is still desired, what type should it have?
Unclear. Have you read the implementations of zipWith
and chunksOf
yet? The question is whether there's a reasonably clean and documentable way to package up something like the mechanism that underlies those.
(If you haven't, well then, you might find them interesting. I actually came up with that mechanism as my first attempt to make <*>
incremental. It turned out to be lousy for that purpose, but quite good for zipping. And it didn't take much to shoehorn chunksOf
into that, though it's not the ideal shape for it.
I'm currently using it to implement
enumFromTo
-like functions forSeq
, which demonstrate the same sort of performance advantage for incremental use as my proposedzipWith
change.splitTraverseSeq
would also be great for conversion fromArray
andVector
types. As it appears to be generally useful, I think we should export it in some form. We probably don't want to export aSplittable
class, however, so we'll need to do something to work around that.