File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -615,6 +615,9 @@ You can have a look at the real-life [`Functor` interface](https://github.com/dr
615
615
... function : Callable[[_FirstType], _NewFirstType],
616
616
... ) -> ' Box[_NewFirstType]' :
617
617
... return Box(function(self ._inner_value))
618
+ ...
619
+ ... def __eq__ (self , other ) -> bool :
620
+ ... return type (other) == type (self ) and self ._inner_value == other._inner_value
618
621
619
622
>> > assert Box(- 5 ).map(abs ) == Box(5 )
620
623
>> >
@@ -681,14 +684,6 @@ An object that has `extract` and `extend` functions.
681
684
# TODO
682
685
```
683
686
684
- ## Applicative Functor (TODO)
685
-
686
- An applicative functor is an object with an ` ap ` function. ` ap ` applies a function in the object to a value in another object of the same type.
687
-
688
- ``` python
689
- # TODO
690
- ```
691
-
692
687
## Morphism (TODO)
693
688
694
689
A transformation function.
You can’t perform that action at this time.
0 commit comments