File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,9 @@ monads like ``Failure`` and ``Nothing``:
82
82
- :func: `Monad.ebind <dry_monads.primitives.monad.Monad.ebind> ` the opposite
83
83
of ``bind `` method that works only when monad is failed
84
84
85
+ ``efmap `` can be used to fix some fixable errors
86
+ during the pipeline execution:
87
+
85
88
.. code :: python
86
89
87
90
from dry_monads.either import Failure
@@ -92,8 +95,8 @@ monads like ``Failure`` and ``Nothing``:
92
95
Failure(1 ).efmap(double)
93
96
# => Will be equal to Success(2.0)
94
97
95
- So, `` efmap `` can be used to fix some fixable errors
96
- during the pipeline execution.
98
+ `` ebind `` can return any monad you want.
99
+ It can also fix your flow and get on the right track again:
97
100
98
101
.. code :: python
99
102
@@ -107,9 +110,6 @@ during the pipeline execution.
107
110
Failure(ZeroDivisionError ).ebind(fix)
108
111
# => Will be equal to Success(0)
109
112
110
- ``ebind `` can return any monad you want.
111
- It can also be fixed to get your flow on the right track again.
112
-
113
113
Unwrapping values
114
114
~~~~~~~~~~~~~~~~~
115
115
You can’t perform that action at this time.
0 commit comments