Skip to content

Glossary: Kotlin Beyond the Basics

apply

A scope function that runs a lambda with the object as `this` and returns the object, handy for setting up a new object. Builders use it to fill in a `Board` or `Section`.

Where the book teaches it

Related terms

scope functionlambda with receiver