repeat
repeat(element, n)
Generates a repeating sequence of an element n
times.
Parameters
element : the element to repeat
n : the number of times to repeat the element
Returns
An Enumerable
collection of n
repeated elements.
Example
from py_linq import Enumerable
test = u"".join(Enumerable.repeat(u'Z', 10).to_list())
# ZZZZZZZZZZ