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