first<A> static method

Semigroup<A> first<A>()

Create a Semigroup instance that always returns the lefthand side.

Implementation

static Semigroup<A> first<A>() => _Semigroup((x, y) => x);