Skip to content

Glossary: Kotlin Beyond the Basics

non-local return

A plain `return` inside an inline function's lambda that leaves the calling function, such as returning from `hasCode` inside `forEach`.

Where the book teaches it

Related terms

inline functionlabel