fold top-level property

C Function(Either<A, B>) Function<A, B, C>(C onLeft(A), C onRight(B)) fold
final

Alias for match.

Provides a way to handle an Either by executing a function based on its value.

Implementation

final fold = match;