@basic-streams/skip
v1.0.0
Published
skip operator for basic-streams
Downloads
26
Readme
@basic-streams/skip
skip<T>(n: number, stream: Stream<T>): Stream<T>
Creates a stream containing values from the given stream
except for the first
n
values.
import ofMany from "@basic-streams/of-many"
import skip from "@basic-streams/skip"
const stream = ofMany([1, 2, 3], 5000)
const result = skip(2, stream)
result(x => {
console.log(x)
})
// > 3
// stream: ____1____2____3
// result: ______________3