effect-io-ai

Package: effect
Module: TArray

TArray.maxOption

Atomically compute the greatest element in the array, if it exists.

Signature

declare const maxOption: { <A>(order: Order.Order<A>): (self: TArray<A>) => STM.STM<Option.Option<A>>; <A>(self: TArray<A>, order: Order.Order<A>): STM.STM<Option.Option<A>>; }

Source

Since v2.0.0