Kotlin theorytheory 0/50 · 0%
Advanced · hard

50. Inline Functions and Crossinline

Optimizing lambda performance.

Inline functions reduce overhead by copying code. Crossinline prevents non-local returns in nested lambdas.

Check your understanding

  1. 1. Keyword to disable inlining for a param?

  2. 2. What is a non-local return?