8 Advanced list handling
In this chapter
- Speeding list processing with memoization
- Composing
List
andResult
- Implementing indexed access on lists
- Unfolding lists
- Automatic parallel list processing
In chapter 5, you created your first data structure, the singly linked list. At that point, you didn’t have all the techniques needed to make this structure a complete tool for data handling. One particularly useful tool you were missing was some way to represent operations producing optional data or operations producing an error.
In chapters 6 and 7, you learned how to represent optional data and errors. In this chapter, you’ll learn how to compose operations that produce optional data or errors with lists. You also developed some functions that ...
Get The Joy of Kotlin now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.