Lambdas & Inline Functions

KOTLIN › Types & Classes

Drills higher-order functions, lambda mechanics, closures, and when inline saves or bloats.

Lambdas and inline functions are bread-and-butter Kotlin that interviewers use to probe how deeply you understand the language beyond syntax. Expect questions on what inlining actually does to bytecode (no function-object allocation, non-local return), the precise roles of noinline and crossinline, and the trade-off between hot-path speedups and code bloat. Strong answers connect these to real Android costs like allocation pressure and reified type parameters.

What this covers

Study this topic

Further reading