effect-io-ai

Package: effect
Module: TSet

TSet.takeFirst

Takes the first matching value, or retries until there is one.

Signature

declare const takeFirst: { <A, B>(pf: (a: A) => Option.Option<B>): (self: TSet<A>) => STM.STM<B>; <A, B>(self: TSet<A>, pf: (a: A) => Option.Option<B>): STM.STM<B>; }

Source

Since v2.0.0