O'Reilly logo
  • MICHAEL MASLENKO thinks this is interesting:

The with function converts its first argument into a receiver of the lambda that’s passed as a second argument

From

Cover of Kotlin in Action

Note

5
with explained
with(object, lambda that is getting the object as this)