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 called pure in some context.
unit = NotImplemented

The unit.

Maps a value to a value in this type. Also called pure or return depends on context.