Kotlin theorytheory 0/50 · 0%
Fundamentals · medium

33. Lambdas with Receivers

Foundation for DSLs.

Functions like 'apply' and 'with' use lambdas with receivers, giving access to the object's scope via 'this'.

Check your understanding

  1. 1. Which scope function returns the object?

  2. 2. Function type syntax?