max<A> function

BaseSemigroup<A> max<A>(
  1. Ord<A> order
)

Creates a semigroup that uses an Ord instance to pick the maximum of two elements.

Implementation

BaseSemigroup<A> max<A>(Ord<A> order) => _MaxSemigroup<A>(order);