Recap
We started this chapter with a complete implementation of a new user story, including making some mistakes and learning how to fix them. I hope it’s becoming more evident how the functional approach simplifies finding bugs and shortens the time needed to fix them.
Then, we considered how to do the validation of user input. That drove us to the concept of traverse and how to swap the place of a collection inside a functor.
Generalizing on traverse, we arrived at the concept of applicative functors—a very useful data type pattern for handling functions with more than a single parameter in a functional way. We also experimented using infix functions to make the code easier to read, and we adopted them in the Zettai routes.
Finally, we put ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access