May 2024
Intermediate to advanced
560 pages
16h 9m
English
This chapter covers
In chapter 5, you learned about lambdas as a way of passing small blocks of code to other functions. One of the most common uses for lambdas is working with collections. In this chapter, you will see how replacing common collection access patterns with a combination of standard library functions and your own lambdas can make your code more expressive, elegant, and concise—whether you are filtering your data based on predicates, need to group data, or want to transform collection items from one form to another.
You will also explore sequences as an alternative way to apply multiple collection ...
Read now
Unlock full access