Returns a Seq.Indexed of value
repeated times
times. When times
is
not defined, returns an infinite Seq
of value
.
Repeat<T>(value: T, times?: number): Seq.Indexed<T>
Repeat('foo') // ['foo','foo','foo',...]
Repeat('bar',4) // ['bar','bar','bar','bar']