We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db2e1da commit dbae925Copy full SHA for dbae925
returns/maybe.py
@@ -147,8 +147,10 @@ def filter(self,
147
If the predicate returns false, Nothing is returned
148
149
.. code:: python
150
+
151
+ >>> from returns.maybe import Maybe, Some, Nothing
152
>>> def predicate(value):
- >>> return value % 2 == 0
153
+ ... return value % 2 == 0
154
155
>>> assert Some(5).filter(predicate) == Nothing
156
>>> assert Some(6).filter(predicate) == Some(6)
0 commit comments