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