0.1.0-alpha.1 • Published 8 months ago
@toa.io/stream v0.1.0-alpha.1
Extended streams
TL;DR
import { Stream } from 'streamo'
function* generate () {
for (let i = 0; i < 10; i++)
yield i
}
const stream = new Stream(generate())
const odds = stream.map(x => x + 1).filter(x => x % 2 === 1)
0.1.0-alpha.1
8 months ago