Skip to content

Glossary: Kotlin Beyond the Basics

closure

Also written: capture, captures

A lambda that keeps the values from around it that it uses. Each `discount` lambda remembers its own `percent`.

Where the book teaches it

Related terms

higher-order function