Interface Either<L,R>

Type Parameters:
L - the type of the Left value
R - the type of the Right value
All Known Implementing Classes:
Left, Right

public sealed interface Either<L,R> permits Left<L,R>, Right<L,R>
A generic sealed interface representing a value of one of two possible types (a disjoint union). Instances of Either are either an instance of Left or Right. Inspired by the implemenation from Either (Scala) and Either (ArrowKt)
Author:
Juan Antonio BreƱa Moral, ChatGPT-40