/**
 * Iterator yielding an infinite (by default) repetition of given value
 * `x`. If `n` is given, only produces that many values.
 *
 * See also:  repeatedly example param x param n export function * repeat < T > ( x , n = Infinity ) { while ( n -- > 0 ) { yield x ; } }