January 2019
Intermediate to advanced
320 pages
9h 18m
English
This chapter covers
transform with monadsThe functional programming world isn’t big on design patterns, but common abstractions pop up everywhere. These abstractions allow you to handle different types of problems from significantly different domains in the same way.
In C++, we already have one abstraction like this: iterators. With ordinary arrays, we can use pointers to move around and access data. We can use the operators ++ and -- to go to the next and previous elements, respectively, and we can dereference them with the * operator. The problem is, this works only for arrays and structures ...
Read now
Unlock full access