mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-01 13:11:39 +07:00
13 lines
232 B
Kotlin
13 lines
232 B
Kotlin
// IS_APPLICABLE: false
|
|
|
|
inline fun <T, R> T.let(block: (T) -> R): R = block(this)
|
|
|
|
fun foo(arg: Any?): Int? {
|
|
return arg?.let {
|
|
<caret>x -> x.toString().let {
|
|
x.hashCode() + it.hashCode()
|
|
}
|
|
}
|
|
}
|
|
|