CodeType
Learn
…
←
Fundamentals
5 / 16
Up next
times
# times yields 0, 1, 2
3
.times { |
i
| puts
"tick
#{i}
"
}
What you're solving
repeat n times with an index
Explain more ↓
Start typing →