Create a pipeline for chaining iterator with operators.
import { pipe } from "yta";import { drop, filter, map, range, reduce, take } from "yta/sync";pipe( range(), drop(10), filter((x) => x % 2 === 0), map((x) => x * 2), take(5), reduce((sum, x) => sum + x, 0),);// => 140 Copy
import { pipe } from "yta";import { drop, filter, map, range, reduce, take } from "yta/sync";pipe( range(), drop(10), filter((x) => x % 2 === 0), map((x) => x * 2), take(5), reduce((sum, x) => sum + x, 0),);// => 140
Create a pipeline for chaining iterator with operators.