@codibre/fluent-iterable
Version:
Provides LINQ-like fluent api operations for iterables and async iterables (ES2018+).
18 lines (17 loc) • 677 B
TypeScript
import { FluentAsyncIterable, FluentIterable } from '../base';
export interface RepeatFunction<T> {
/**
* Repeats the elements of the iterable a specified amount of times.
* @param n The amount of times the iterable is to be repeated.
* @returns The [[FluentAsyncIterable]] of the repeated iterable.
*/
(n: number): FluentIterable<T>;
}
export interface AsyncRepeatFunction<T> {
/**
* Repeats the elements of the iterable a specified amount of times.
* @param n The amount of times the iterable is to be repeated.
* @returns The [[FluentAsyncIterable]] of the repeated iterable.
*/
(n: number): FluentAsyncIterable<T>;
}