/** * Iterator which yields an infinite repetition of given `input` * iterable's values. Produces no values if `input` is empty. If `num` * is given, only that many cycles will be emitted. * * @remarks * Also see {@link repeat}, {@link repeatedly} for related functions. * * @example * ```ts tangle:../export/cycle.ts * import { cycle, range, take } from "@thi.ng/transducers"; * * // take 5 from infinite sequence * console.log( * [...take(5, cycle([1, 2, 3]))] * ); * // [1, 2, 3, 1, 2] * * // only produce 2 cycles * console.log( * [...cycle(range(3), 2)] * ); * // [ 0, 1, 2, 0, 1, 2 ] * ``` * * @param input - * @param num - */ export declare function cycle(input: Iterable, num?: number): Generator; //# sourceMappingURL=cycle.d.ts.map