Returns a string containing this char sequence repeated n times.
Since Kotlin
1.0Throws
Samples
import java.util.Locale
import kotlin.test.*
fun main() {
println("Word".repeat(4))
println("Word".repeat(0))
}
Target: JVMRunning on v.2.1.20
Returns a string containing this char sequence repeated n times.
Since Kotlin
1.1Throws
Samples
import java.util.Locale
import kotlin.test.*
fun main() {
println("Word".repeat(4))
println("Word".repeat(0))
}
Target: JVMRunning on v.2.1.20
Returns a string containing this char sequence repeated n times.
Since Kotlin
1.0Throws
Samples
import java.util.Locale
import kotlin.test.*
fun main() {
println("Word".repeat(4))
println("Word".repeat(0))
}
Target: JVMRunning on v.2.1.20
Returns a string containing this char sequence repeated n times.
Since Kotlin
1.3Throws
Samples
import java.util.Locale
import kotlin.test.*
fun main() {
println("Word".repeat(4))
println("Word".repeat(0))
}
Target: JVMRunning on v.2.1.20