I use it in some constructs like `fun getSomething...
# getting-started
m
I use it in some constructs like
fun getSomething() = cached { computeSomething() }
where
cached
is an inline function. It is compiled into something similar to
Copy code
fun getSomething(): Whatever {
    val fromCache = cache.get(”something”)
    if (fromCache != null) return fromCache

    val computed = computeSomething() // inlined lambda
    cache.put(”something”, computed)
    return computed
}
according to method’s body (not shown)