Skip to content

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]

Notifications You must be signed in to change notification settings

robcd/scala-either-proj-map-returns-proj

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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]

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages