March 2020
Intermediate to advanced
406 pages
8h 39m
English
A functor is a functional programming paradigm in which a transformation is performed on a structure while the structure is preserved.
In our example, we take an integer slice, intSlice, and lift the slice into a functor. IntSliceFunctor is an interface that includes the following:
After we have our lifted slice, we can perform operations on our newly created functor. In our example, we perform a square operation and a modulus three operation. The following is ...
Read now
Unlock full access