Either

enum Either<L, R>

Identifies which of two differently typed operations produced a value.

Cases

case left(L)

Contains the value produced by the left operation.

case right(R)

Contains the value produced by the right operation.