Applicative Functor¶
monad.types.applicative - The Applicative Functor Class.
-
class
monad.types.applicative.Applicative(value)[source]¶ Bases:
monad.types.functor.FunctorThe Applicative Functor Class.
Defines the following functions:
unitwhich act as constructor, it’s calledpurein some context.
-
unit= NotImplemented¶ The unit.
Maps a value to a value in this type. Also called
pureorreturndepends on context.