extension function
Also written: extension functions
A function added to an existing type from outside it, such as `fun Double.money()`. You call it with a dot as if it belonged to the type.
Also written: extension functions
A function added to an existing type from outside it, such as `fun Double.money()`. You call it with a dot as if it belonged to the type.