How does run function works in Kotlin?

前端 未结 0 1728
孤街浪徒
孤街浪徒 2021-01-17 23:08

run signature looks like:

public inline fun  T.run(block: T.() -> R): R {
contract {
    callsInPlace(block, InvocationKind.EXACTLY_ONCE)
}
ret         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题