Mismatch between actual and expected values
Could someone explain for me why
actual and expected don't match here? I'm getting actual=9998 and expected=10000actualexpectedEffect.runPromise(
Effect.gen(function* (_) {
const range = ReadonlyArray.range(1, 1e4)
const stream = Stream.fromIterable(range)
const it = yield* _(
Stream.runCollect(stream),
Effect.map(ReadonlyArray.fromIterable)
)
yield* _(
Console.log({
actual: it.length,
expected: range.length,
})
)
})
)