Skip to content

Either

Construct a right value: { right = v; }.

Construct a left value: { left = v; }.

Apply f to the right branch; pass left unchanged.

Apply f to the left branch; pass right unchanged.

Monadic bind on right. f must return Either.

Exchange right and left branches.

Contribute Community Sponsor