Kotlin 比Java更方便的地方,其中之一是可以将函数作为参数。 ... fun T.apply(block: T.() -> Unit): T { block(); return this }.
確定! 回上一頁