scala.Either modified so that lp/rp.map returns a Left/RightProj (instead of Either), thereby enabling definitions in for-comprehensions [see add_right-bias_2-10_withFilter branch for latest thinking]
Scala
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
project
src
.gitignore
README.md
build.sbt

README.md

The project description about says it all.

However, note that support for if in for comprehensions has now been removed, on the grounds that an empty result isn't appropriate - either it's Left or it's Right!

The modified version is here.

Example code

for comprehension tests
tests involving Option
SaturdayNight