Skip to contents

Run a function depending on whether an Either value is Left or Right

Usage

either(fl, fr, ex)

Arguments

fl

A function to run on the value held by a Left value

fr

A function to run on the value held by a Right value

ex

A value to check