5 Data handling with lists
In this chapter
- Classifying data structures
- Using the ubiquitous singly linked list
- Understanding the importance of immutability
- Handling lists with recursion and functions
Data structures are one of the most important concepts in programming, as well as in everyday life. The world as you see it is a huge data structure composed of simpler data structures, which are in turn composed of simpler structures. Each time you model something, be it objects or facts, you end up with data structures.
Data structures come in many types. In computing, data structures referring to the multiple occurrences of data of a given common type are generally represented as a whole by the term collections. A collection is a group of data ...
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.