所以也可以是這樣的用法,輸入是數字,回傳是字串。 ... val foldedValue = listOf(1, 2, 3, 4).fold(100) { acc, num -> println("accumulated value: acc:$acc, ...
確定! 回上一頁