kotlin repeat string n times code example Example: kotlin repeat n times repeat(repetitions) { // Do something }