@effect-ts/system
Version:
Effect-TS is a zero dependency set of libraries to write highly productive, purely functional TypeScript at scale.
14 lines (11 loc) • 393 B
text/typescript
// ets_tracing: off
import type * as T from "../../../../Effect/index.js"
import * as SK from "../../Sink/index.js"
import type * as C from "../core.js"
import * as Run from "./run.js"
/**
* Runs the stream to a sink which sums elements, provided they are Numeric.
*/
export function runSum<R, E>(self: C.Stream<R, E, number>): T.Effect<R, E, number> {
return Run.run_(self, SK.sum())
}