streamly icon indicating copy to clipboard operation
streamly copied to clipboard

Scan naming in the new scanl module

Open harendra-kumar opened this issue 1 year ago • 1 comments

Since postscan is the most common use case we can use scanl for postscan and use scanl0 for regular scan that emits the accumulator as well. scanl1 as usual will use the first element in the stream as accumulator.

harendra-kumar avatar Oct 02 '24 05:10 harendra-kumar

Better, rename the standard scanl/scanl1 to prescanl/prescanl1 and rename postscanl/postscanl1 to scanl/scanl1. But this would require lot of changes.

harendra-kumar avatar May 03 '25 13:05 harendra-kumar