effect-io-ai

Package: effect
Module: TSet

TSet.takeSome

Takes all matching values, or retries until there is at least one.

Signature

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

Source

Since v2.0.0