Kotlin: infix notation

Example:

infix fun Int.times(str: String) = str.repeat(this)
Infix notation allows you to call a function without dot and parentheses.

Solution:

print(2 times "Bye ") // Outputs: Bye Bye

Beginner's Guide to Kotlin