Create an iterator which repeats a value a number of times.
The value to repeat.
The number of times to repeat the value.
A new iterator which repeats the specified value.
import { repeat } from '@lumino/algorithm';let stream = repeat(7, 3);Array.from(stream); // [7, 7, 7] Copy
import { repeat } from '@lumino/algorithm';let stream = repeat(7, 3);Array.from(stream); // [7, 7, 7]
Create an iterator which repeats a value a number of times.