bow-swift / bow

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

Add or method to PPrism #602

Closed ferranpujolcamins closed 3 years ago

ferranpujolcamins commented 3 years ago

Related issues

601

Goal

Add or combinator to PPRism.

Testing details

I'm wondering what are the right properties to test here. It seems to me that if lens composition is a product in some category, this is probably the coproduct (or viceversa?). Unfortunately I haven't found any info after a quick search. If you have any clue or reference please let me know!