I'm just getting started with kotlin...can anyone ...
# getting-started
k
I'm just getting started with kotlin...can anyone expain what the
with
clause does? Is it similar to python's with?
v
It does what python's and javascript's
with
does
Altho note that in kotlin
with
is a function in the library, and its code describes its precise behaviour
public inline fun <T, R> with(receiver: T, block: T.() -> R): R = receiver.block()