import { Option } from 'fp-ts/lib/Option';
import { Task } from 'fp-ts/lib/Task';
import { AsyncStream } from '../uri';
/**
* Provides a safe way to read a value at a particular index from
* an {@link AsyncStream}.
*
* If the index is negative, `None` will be returned.
*
* @export
* @param {number} i The index to lookup.
* @return {(fa: AsyncStream) => Task