composewell / streamly

High performance, concurrent functional programming abstractions
https://streamly.composewell.com
Other
859 stars 65 forks source link

The "initial" action in folds need not be monadic #2713

Open harendra-kumar opened 8 months ago

harendra-kumar commented 8 months ago

When it is needed to be monadic we can use a bracket like combinator to introduce another state, like we do in streams.