4 lines
80 B
Nim
4 lines
80 B
Nim
iterator cycle*[T](s: openArray[T]): T =
|
|
let s = @s
|
|
for x in s:
|
|
yield x
|