In Kotlin, there is a keyword `inline` that makes ...
# getting-started
m
In Kotlin, there is a keyword
inline
that makes compiler to copy method body to the place of its invocation. E. g.
Copy code
file.inputStream().use { 
    println(”hello”)       
}
will be compiled to (not literally, just an example):
Copy code
val it = file.inputStream();
try {
    println(”hello”)
} finally {
    it?.close();
}