Repeat a block of code a fixed number of times
问题 I'm trying to repeat a block of code, without using a condition, yet still only repeating it a specific number of times. Basically, something like this: repeat(50) { //Do stuff here. } Is there a way to do this? Other than copying and pasting 50 times? I'm doing this because I figured if I know how many times I want to repeat something, it'd be quicker than checking a condition every time. Is that accurate? Or would I still be checking how many times it's been repeated? Basically, is it any