Skip to content
The Elk Shell Language
Search
K
Main Navigation
Reference
Standard Library
GitHub
Appearance
GitHub
Menu
Return to top
On this page
Table of Contents for current page
iter::repeat
repeat(item)
repeat(item, n: Integer)
Parameter
Type
Description
item
*
The object to repeat
(optional) n
Integer
The amount of times it should be repeated
Returns
(Generator) A list containing n instances of the given item.