We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8935f2 commit 80517e2Copy full SHA for 80517e2
examples/05_Collections/07_firstlast.md
@@ -50,9 +50,9 @@ fun main() {
50
val lastZ = words.lastOrNull { it.endsWith('z') } // 8
51
//sampleEnd
52
53
- println("First $first, last $last")
54
- println("First starts with 'f' is $firstF, last starts with 'z' is $firstZ")
55
- println("First ends with 'f' is $lastF, last ends with 'z' is $lastZ")
+ println("Empty list: first is $first, last is $last")
+ println("Word list: first item starting with 'f' is $firstF, first item starting with 'z' is $firstZ")
+ println("Word list: last item ending with 'f' is $lastF, last item ending with 'z' is $lastZ")
56
}
57
```
58
0 commit comments