Stream overview
Added in v0.6.0
Table of contents
constructors
stream
Signature
export declare const stream: <A>(buffer: A[], cursor?: number | undefined) => Stream<A>
Added in v0.6.0
destructors
atEnd
Signature
export declare const atEnd: <A>(s: Stream<A>) => boolean
Added in v0.6.0
get
Signature
export declare const get: <A>(s: Stream<A>) => Option<A>
Added in v0.6.0
getAndNext
Signature
export declare const getAndNext: <A>(s: Stream<A>) => Option<{ value: A; next: Stream<A> }>
Added in v0.6.0
instances
getEq
Signature
export declare const getEq: <A>(E: Eq<A>) => Eq<Stream<A>>
Added in v0.6.0
model
Stream (interface)
Signature
export interface Stream<A> {
readonly buffer: Array<A>
readonly cursor: number
}
Added in v0.6.0