Monad
Alternative
Filterable
import { from } from 'ix/asynciterable'
import { asyncIterable } from 'fp-ts-ixjs/lib/AsyncIterableX'
const fa = from([1, 2, 3])
const fb = asyncIterable.chain(fa, a => from([a, a + 1]))
// fb will emit 1, 2, 2, 3, 3, 4
Monad
Alternative
Filterable
import { from } from 'ix/asynciterable'
import { asyncIterable } from 'fp-ts-ixjs/lib/AsyncIterableX'
const fa = from([1, 2, 3])
const fb = asyncIterable.chain(fa, a => from([a, a + 1]))
// fb will emit 1, 2, 2, 3, 3, 4