import { repeat } from "https://deno.land/x/froebel@v0.18.0/iterable.ts";
Returns a generator that repeats sequence
.
Examples
Example 1
Example 1
// prints: 1, 2, 3, 1, 2, 3, ...
for (const n of repeat(1, 2, 3))
console.log(n)
import { repeat } from "https://deno.land/x/froebel@v0.18.0/iterable.ts";
Returns a generator that repeats sequence
.
Example 1
// prints: 1, 2, 3, 1, 2, 3, ...
for (const n of repeat(1, 2, 3))
console.log(n)