Summary
We manipulate collections constantly in our code. We often start with a list of items and need to transform our initial list into another list of different items. Sometimes, we want to map our list to another list of equal size. Sometimes, we want to group and sort our list. Other times, we need to arrive at a single result value.
In this chapter, we explored the different types (intermediate and terminal) of collection functors. We ped into a few key areas of collection manipulation, including iterators, the map function, the contains method, and chaining of functions.
We looked at a few Go packages that provide a cadre of high-order functions that we can use in our new functional style of programming.
We gained an appreciation for Unix pipes and discovered that a new distributed processing Go package, named Gleam, leverages pipe to deliver a lightweight Go-based functional solution.
In the next chapter, we'll pe deeper into pipelining and see how it can improve performance.