In previous chapters, we see how functors and monads allow us to sequence operations in a program using map
and flatMap
. Applicative functors
are a related abstraction that is less powerful than monads, and are more common.
Methods that define a Functor:
def map[A,B](a: F[A])(f: A => B): F[B]