Closed
Description
What version are you currently using?
1.x.x
What would you like to see?
There are a bunch of Sequence
signatures that in their signature give the impression that they're lazy, but in reality they're terminal and consume the entire Sequence
before returning.
From my short investigation it looks like these cannot be made lazy, but perhaps we can instead update their implementation for them to return List
instead of Sequence
.
crosswalk
crosswalkMap
crosswalkNull
separateEither
unalign
unzip
This might be possible to rewrite as a lazy version:
unweave
(investigate if can be made lazy)
Activity
Sequence
signatures and hygiene #2993serras commentedon Mar 24, 2023
Implementations returning
List
have been added as part of #2993, and the incorrect ones marked for deprecation. We should remember to remove them in 2.0.nomisRev commentedon Apr 5, 2023
This was taken care of by @gutiory and released in 1.2.0-RC