Discover 1 story with “extension function” Tag.
Kotlin generic extension functions
7 months ago
I have been educating myself in Kotlin recently. One of the most powerful feature that Kotlin provides is: Extension Functions. The simplest of example of a Extension Function that I can come up with is: fun String.addOne() = this + "1"