8000 Update README.md · jgarte/functional-jargon-python@fd00718 · GitHub
[go: up one dir, main page]

Skip to content

Commit fd00718

Browse files
authored
Update README.md
1 parent 3564d5e commit fd00718

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

README.md

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -615,6 +615,9 @@ You can have a look at the real-life [`Functor` interface](https://github.com/dr
615615
... function: Callable[[_FirstType], _NewFirstType],
616616
... ) -> 'Box[_NewFirstType]':
617617
... 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
618621

619622
>>> assert Box(-5).map(abs) == Box(5)
620623
>>>
@@ -681,14 +684,6 @@ An object that has `extract` and `extend` functions.
681684
# TODO
682685
```
683686

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-
692687
## Morphism (TODO)
693688

694689
A transformation function.

0 commit comments

Comments
 (0)
0