You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An Applicative Functor is an object with `apply` and `.from_value` methods:
631
+
-`.apply` applies a function in the object to a value in another object of the same type. Somethimes this method is also called `ap`
632
+
-`.from_value` creates a new Applicative Functor from a pure value. Sometimes this method is also called `pure`
633
+
634
+
All Applicative Functors must also follow [a bunch of laws](https://returns.readthedocs.io/en/latest/pages/interfaces.html#applicative).
635
+
636
+
You can have a look at the real-life [`Applicative Functor` interface](https://github.com/dry-python/returns/blob/master/returns/interfaces/applicative.py).
0 commit comments