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) 287 B
// ets_tracing: off import * as O from "../../../Option/index.mjs"; import * as FoldLeft from "./foldLeft.mjs"; /** * Creates a sink containing the last value. */ export function last() { return FoldLeft.foldLeft(O.none, (_, in_) => O.some(in_)); } //# sourceMappingURL=last.mjs.map