Skip to content

Glossary: Kotlin Basics

let

Also written: let { }

A scope function that passes the object to a lambda as `it` and gives back the lambda's result. With `?.`, it runs only when the value isn't null.

Where the book teaches it

Related terms

scope functionsapply