Kotlin: working with extensions
Example:
fun String.shout(): String = this.toUpperCase()
Kotlin extensions allow you to add new functions to existing classes.
Solution:
print("hello".shout())
Example: Solution:Kotlin: working with extensions
Kotlin extensions allow you to add new functions to existing classes.
fun String.shout(): String = this.toUpperCase()
print("hello".shout())