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

New tailRecM laws + Bug fixes 🐞 #624

Closed ferranpujolcamins closed 3 years ago

ferranpujolcamins commented 3 years ago

I added two new laws to test tailRecM (I took them from Scala).

With the new tailRecMConsistentFlatMap law I discovered and fixed bugs in the implementation of tailRecM for Ior and WriterT.

truizlop commented 3 years ago

Awesome! Good catch!