Skip to content

Glossary: Kotlin Beyond the Basics

scope function

Also written: let, run, with, also, takeIf

Functions that run a lambda on one object: `let` and `also` use `it`, while `run`, `with` and `apply` use `this`. They differ in what they return.

Where the book teaches it

Related terms

apply