Skip to content

Glossary: Kotlin Basics

apply

A scope function that runs a lambda with the object as `this`, then gives the object back. It is handy for setting several properties of a new object, such as a Ticket.

Where the book teaches it

Related terms

scope functionsletthis