leftOrNull method

L? leftOrNull()

Returns the value of Left if available. Otherwise, null is returned.

Implementation

L? leftOrNull() => fold((l) => l, (r) => null);