UNPKG

@effect-ts/system

Version:

Effect-TS is a zero dependency set of libraries to write highly productive, purely functional TypeScript at scale.

16 lines 747 B
import type { Refinement } from "../../../../Function/index.js"; import * as O from "../../../../Option/index.js"; import type * as Chunk from "../core.js"; /** * Returns the first element that satisfies the predicate. */ export declare function find_<A, B extends A>(self: Chunk.Chunk<A>, f: Refinement<A, B>): O.Option<B>; export declare function find_<A>(self: Chunk.Chunk<A>, f: (a: A) => boolean): O.Option<A>; /** * Returns the first element that satisfies the predicate. * * @ets_data_first find_ */ export declare function find<A, B extends A>(f: Refinement<A, B>): (self: Chunk.Chunk<A>) => O.Option<B>; export declare function find<A>(f: (a: A) => boolean): (self: Chunk.Chunk<A>) => O.Option<A>; //# sourceMappingURL=find.d.ts.map