Pattern matches on an Either, handling both Right and Left cases.
Either
Right
Left
Function to handle the Left case
Function to handle the Right case
The result of either onLeft or onRight based on the Either state
onLeft
onRight
Pattern matches on an
Either
, handling bothRight
andLeft
cases.