cats.protocols
A collection of protocols upon which the cats abstractions are built.
NOTE: Functions of this namespace are not intended to be used directly. It is considered internal api.
Contextual
protocol
Abstraction that establishes a concrete type as a member of a context.
A great example is the Maybe monad type Just. It implements this abstraction to establish that Just is part of the Maybe monad.
members
MonadZero
protocol
A complement abstraction for monad that supports the notion of an identity element.
members
Monoid
protocol
A Semigroup which has an identity element with respect to an associative binary operation.
members
Traversable
protocol
Abstraction of data structures that can be traversed from left to right performing an action on every element.
members
-traverse
(-traverse tctx f tv)
Map each element to an Applicative, evaluate the applicatives from left to right and collect the results.