Commit MetaInfo

修订版b63cfcef4f51621244d7acf4c594347cc22d6af6 (tree)
时间2022-10-05 23:55:06
作者Erik <erikgronwal@user...>
CommiterErik

Log Message

Regular updates

更改概述

差异

--- a/kotlin.md
+++ b/kotlin.md
@@ -169,6 +169,7 @@ val containsNoEvens = numList.none { it % 2 == 0 }
169169 val containsNoEvens = numList.all { it % 2 == 1 }
170170 val firstEvenNumber: Int = numList.first { it % 2 == 0 }
171171 val firstEvenOrNull: Int? = numList.firstOrNull { it % 2 == 0 }
172+val fullMenu = objList.map { "${it.name} - $${it.detail}" }
172173 ```
173174
174175 Note: `it` is the [implicit name for a single parameter](https://kotlinlang.org/docs/reference/lambdas.html#it-implicit-name-of-a-single-parameter).
Show on old repository browser