Kotlin 扩展函数 run , with , let , also 和 apply

函数定义与使用 run() 定义 /** * Calls the specified function [block] and returns its result. */ @kotlin.internal.InlineOnly public inline fun <R> run(block: () -> R): R { contract { callsInPlace(
相关文章
相关标签/搜索