Applicative
funstruct.typeclasses.applicative
Applicative — independent computations combined in context.
pure: A → F[A] ap: F[A → B] → F[A] → F[B]
Applicative
Bases: Functor
pure + ap, with map derived from ap + pure.
Source code in funstruct/typeclasses/applicative.py
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | |
ap(ff, fa)
abstractmethod
F[A → B] → F[A] → F[B]
Source code in funstruct/typeclasses/applicative.py
21 22 23 24 | |