Discover 1 story with “extension functions” Tag.
Kotlin generic extension functions
3 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"