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(
相關文章
相關標籤/搜索