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`.
Glossary: Kotlin Beyond the Basics
Also written: capture, captures
A lambda that keeps the values from around it that it uses. Each `discount` lambda remembers its own `percent`.