Consume the iterator resulting in a single value.
import { pipe } from "yta";import , range, reduce } from "yta/sync";pipe( range(10), reduce((sum, x) => sum + x, 0),);// => 45 Copy
import { pipe } from "yta";import , range, reduce } from "yta/sync";pipe( range(10), reduce((sum, x) => sum + x, 0),);// => 45
See also:
The input type
The output value type
The consuming function
The initial value
Consume the iterator resulting in a single value.
See also: