I have a code that I need to run exactly n times in Swift. What is the shortest possible syntax for that?
n
I am currently using the for loop but
for
for _ in 1...5 { //action will be taken 5 times. }