Skip to main content
Module

x/better_iterators/mod.ts>Lazy#repeat

Chainable iterators (sync and async) for TypeScript, with support for opt-in, bounded parallelism
Latest
method Lazy.prototype.repeat
import { Lazy } from "https://deno.land/x/better_iterators@v1.5.0/mod.ts";

Repeat items count times.

import { range } from "./mod.ts"

let nine = range({to: 3}).repeat(3).sum()

Parameters

count: number