Kotlin 支援頭等函式(first-class function),因此可以把函式當成值儲存在變數中、 ... 使用匿名函式,例: fun(n: Int): String = "Number is $n" ...
確定! 回上一頁