PyDocs

Nav

Functional Programming Modules

repeat

itertools

function
  • repeat(object[, times])
repeat(object [,times]) -> create an iterator which returns the object
for the specified number of times.  If not specified, returns the object
endlessly.
1 Example
>>> list(map(pow, range(10), repeat(2)))
[0, 1, 4, 9, 16, 25, 36, 49, 64, 81]
from the Python docs
See Also
No see-alsos for itertools/repeat
0 Notes
No notes for repeat