Skip to content

Glossary: Kotlin Basics

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.

Where the book teaches it

Related terms

receiverextension property