When should one prefer Kotlin extension functions?
Extension functions are useful in a few cases, and mandatory in others: Idiomatic Cases: When you want to enhance, extend or change an existing API. An extension function is the idiomatic way to change a class by adding new functionality. You can add extension functions and extension properties. See an example in the Jackson-Kotlin Module … Read more