effect-io-ai

Package: effect
Module: TArray

TArray.minOption

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

Signature

declare const minOption: { <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