Skip to main content

FluidIterableIterator Interface

Like TypeScript's built-in iterable iterator type.

Sealed

This type is "sealed," meaning that code outside of the library defining it should not implement or extend it. Future versions of this type may add members or make typing of readonly members more specific.

Signature

/** @sealed */
export interface FluidIterableIterator<T> extends FluidIterable<T>

Extends: FluidIterable<T>

Type Parameters

ParameterDescription
T

Methods

MethodReturn TypeDescription
next(){ value: T; done?: false; } | { value: any; done: true; }Returns the next element in the iteration sequence.

Method Details

next

Returns the next element in the iteration sequence.

Signature

next(): {
value: T;
done?: false;
} | {
value: any;
done: true;
};

Remarks

Works like the built-in Iterator.next method. When there are remaining elements, returns \{ value: T; done?: false \}. When the iteration is complete, returns \{ value: any; done: true \}.

Returns

Return type: { value: T; done?: false; } | { value: any; done: true; }