OneOfN |
Base class for emulating algebraic sum types (also known as a discriminated union) of N elements.
|
OneOfN.Either |
Emulates a sum type consisting of 2 cases.
|
OneOfN.EitherMatcher |
A matcher object that contains a handler for each case and can be used to reduce a sum type to a single value.
|
OneOfN.Just |
Emulates a sum type consisting of 1 case.
|
OneOfN.JustMatcher |
A matcher object that contains a handler for each case and can be used to reduce a sum type to a single value.
|
OneOfN.None |
Emulates a sum type consisting of 0 cases.
|
OneOfN.NoneMatcher |
A matcher object that contains a handler for each case and can be used to reduce a sum type to a single value.
|
OneOfN.OneOf3 |
Emulates a sum type consisting of 3 cases.
|
OneOfN.OneOf3Matcher |
A matcher object that contains a handler for each case and can be used to reduce a sum type to a single value.
|
OneOfN.OneOf4 |
Emulates a sum type consisting of 4 cases.
|
OneOfN.OneOf4Matcher |
A matcher object that contains a handler for each case and can be used to reduce a sum type to a single value.
|
OneOfN.OneOf5 |
Emulates a sum type consisting of 5 cases.
|
OneOfN.OneOf5Matcher |
A matcher object that contains a handler for each case and can be used to reduce a sum type to a single value.
|