Functions
asSequence
- asSequence<T>(iterable: Iterable<T>): Sequence<T>
Type parameters
Parameters
createSequence
- createSequence<T>(iterator: Iterator<T, any, undefined>): Sequence<T>
Type parameters
Parameters
iterator: Iterator<T, any, undefined>
extendSequence
- extendSequence(mixin: new () => any): void
generateSequence
- generateSequence<T>(nextFunction: () => undefined | null | T): Sequence<T>
- generateSequence<T>(seedFunction: () => undefined | null | T, nextFunction: (item: T) => undefined | null | T): Sequence<T>
- generateSequence<T>(seed: undefined | null | T, nextFunction: (item: T) => undefined | null | T): Sequence<T>
Type parameters
Parameters
nextFunction: () => undefined | null | T
Returns undefined | null | T
Type parameters
Parameters
seedFunction: () => undefined | null | T
Returns undefined | null | T
nextFunction: (item: T) => undefined | null | T
- (item: T): undefined | null | T
Parameters
Returns undefined | null | T
Type parameters
Parameters
seed: undefined | null | T
nextFunction: (item: T) => undefined | null | T
- (item: T): undefined | null | T
Parameters
Returns undefined | null | T
isSequence
- isSequence<T>(object: any): object is Sequence<T>
Type parameters
Parameters
Returns object is Sequence<T>
range
- range(start: number, endInclusive: number, step?: number): Sequence<number>
Parameters
start: number
endInclusive: number
step: number = 1
sequenceOf
- sequenceOf<T>(...args: T[]): Sequence<T>
Type parameters
Parameters