~/talk

The Lord of Collection Functions: The Fellowship of Kotlin

Talkat droidCon USA 2026 · on Friday, 2026-07-17· at 09:00· W221C/D/E Keynote Room· [kotlin, functional-programming]
slides:none on file

Walks through concrete Kotlin examples that replace imperative loops with actual collection functions, demonstrating replace forEach by using count (returns 1 for the apple holder), sumOf for ages, filter to pick hobbits, map for roll call, flatMap/flatten to list every item, zip to pair fighters, windowed/chunked for night shifts, groupBy for weapon types, and reduce/fold to pick a champion. Highlights practical caveats like fold safe, reduce unsafe on empty lists and shows flatMap combines map+flatten; code samples and repo links are provided.

AI-written summary · about

  1. 0:00Introduction
  2. 3:02Meet Bendalf
  3. 4:04Imperative vs declarative
  4. 5:30The dark function
  5. 7:37Collection functions foundation
  6. 9:01Count and sum
  7. 10:23Any all none checks
  8. 11:27First last with predicates
  9. 12:32Filter explained
  10. 13:34Take drop map
  11. 16:28Intermediate operations
  12. 16:50Sorted by and with
  13. 20:19Flatten and flatMap
  14. 21:42Partition and groupBy
  15. 25:17Zip and windowed
  16. 27:03Chunked reduce fold
  17. 31:16Reduce and fold
  18. 35:04Mount Dallocation battle
  19. 36:33Conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.