Methods
disposable
- disposable<T>(value: T, dispose: DisposeFn<T>): Generator<T, T, void>
Type parameters
Parameters
Returns Generator<T, T, void>
filter
- filter<T>(iterator: Iterator<T, any, undefined>, test: (v: T) => boolean): Generator<T, any, unknown>
Type parameters
Parameters
iterator: Iterator<T, any, undefined>
test: (v: T) => boolean
Parameters
Returns boolean
Returns Generator<T, any, unknown>
input
- input<T>(elt: Inputable<T>): Generator<T, any, unknown>
Type parameters
Parameters
Returns Generator<T, any, unknown>
map
- map<T, V>(iterator: Iterator<T, any, undefined>, transform: (v: T, index: number) => V): Generator<V, any, unknown>
Type parameters
Parameters
iterator: Iterator<T, any, undefined>
transform: (v: T, index: number) => V
Returns Generator<V, any, unknown>
observe
- observe<T>(initialize: ChangeFn<T>): Generator<T, any, unknown>
Type parameters
Parameters
Returns Generator<T, any, unknown>
queue
- queue<T>(initialize: ChangeFn<T>): Generator<T, any, unknown>
Type parameters
Parameters
Returns Generator<T, any, unknown>
range
- range(start: number, stop?: number, step?: number): Generator<number, any, unknown>
Parameters
start: number
Optional stop: number
Optional step: number
Returns Generator<number, any, unknown>
valueAt
- valueAt<T>(iterator: Iterator<T, any, undefined>, index: number): T
Type parameters
Parameters
iterator: Iterator<T, any, undefined>
index: number
Returns T
worker
- worker(source: string): Worker