UNPKG

@effect-ts/system

Version:

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

11 lines (10 loc) 308 B
// ets_tracing: off import * as O from "../../../Option/index.mjs"; import * as Fold from "./fold.mjs"; /** * Creates a sink containing the first value. */ export function head() { return Fold.fold(O.none, O.isNone, (s, in_) => O.fold_(s, () => O.some(in_), _ => s)); } //# sourceMappingURL=head.mjs.map