Package: effect
Module: Array
Returns the maximum element of a non-empty array according to the given
Order.
Example (Finding the maximum)
import { Array, Order } from "effect"
console.log(Array.max([3, 1, 2], Order.Number)) // 3
See
min — find the minimumsort — sort the entire arraySignature
declare const max: { <A>(O: Order.Order<A>): (self: NonEmptyReadonlyArray<A>) => A; <A>(self: NonEmptyReadonlyArray<A>, O: Order.Order<A>): A; }
Since v2.0.0