bow-swift / bow

🏹 Bow is a cross-platform library for Typed Functional Programming in Swift
https://bow-swift.io
Other
645 stars 32 forks source link

Add stackSafeFlatMap #647

Closed ferranpujolcamins closed 3 years ago

ferranpujolcamins commented 3 years ago

Goal

Provide a default implementation of flatMap based on tailRecM.

Useful when you want a fully stack safe monad, or when you don't want to specialize the implementation of flatMap.

ferranpujolcamins commented 3 years ago

Can this be merged?