September 2023
Intermediate to advanced
470 pages
11h 12m
English
So, what we have found so far? You may have noticed that until now we’ve tried to always use functions with a single parameter, because they are simpler to compose. But, now we have a type of functor that can do transformations using functions with multiple parameters. Functors that can do this are called applicative functors.
We can continue to explore the nature of this kind of functor by looking back at what we did for Validating with Validations. We started with a list of functions returning outcomes and returned a single outcome with a list of errors inside. Can you already spot the similarity with transform2? Don’t worry if you can’t. We’ll look at it in detail now.
What we did with validateWith ...
Read now
Unlock full access