Functor
monad.types.functor - The Functor Class.
-
class
monad.types.functor.
Functor
(value)[source]
Bases: object
The Functor Class.
Defines function fmap
, and should satisfy these laws:
fmap id == id
fmap (f . g) == fmap f . fmap g
-
fmap
(function)[source]
The fmap operation.