Skip to content
This repository was archived by the owner on Oct 10, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions examples/05_Collections/07_firstlast.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ fun main() {
val lastZ = words.lastOrNull { it.endsWith('z') } // 8
//sampleEnd

println("First $first, last $last")
println("First starts with 'f' is $firstF, last starts with 'z' is $firstZ")
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")
}
```

Expand Down