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 0b3a3fc commit af4470fCopy full SHA for af4470f
returns/maybe.py
@@ -149,8 +149,10 @@ def filter(self,
149
If the predicate returns false, Nothing is returned
150
151
.. code:: python
152
+
153
+ >>> from returns.maybe import Maybe, Some, Nothing
154
>>> def predicate(value):
- >>> return value % 2 == 0
155
+ ... return value % 2 == 0
156
157
>>> assert Some(5).filter(predicate) == Nothing
158
>>> assert Some(6).filter(predicate) == Some(6)
0 commit comments