The times to repeat.
The repeated list.
import { range, replicate, toIterator } from "./list.ts";
import { assertEquals } from "../deps.ts";
const replicated = replicate(4)(42);
const iter = toIterator(replicated);
assertEquals(iter.next(), { value: 42, done: false });
assertEquals(iter.next(), { value: 42, done: false });
assertEquals(iter.next(), { value: 42, done: false });
assertEquals(iter.next(), { value: 42, done: false });
assertEquals(iter.next(), { value: undefined, done: true });
Generated using TypeDoc
Repeats
value
atcount
times as a list.