Sequences
A Sequence is anything you can forโฆof: an array, a Set, a
generator. Most functions here take one and return a generator, so a pipeline
does no work until something reads it.
import { Map, Range } from "@pdfking/tfunc"
Array.from(Map(x => x * x, Range(1, 4))) // [1, 4, 9, 16]
The async twins take an AsyncSequence โ see Async.