Skip to content

Commit

Permalink
Fixes docs
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn committed Jan 30, 2019
1 parent 3b30788 commit a0ddbc1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/pages/monad.rst
Expand Up @@ -82,6 +82,9 @@ monads like ``Failure`` and ``Nothing``:
- :func:`Monad.ebind <dry_monads.primitives.monad.Monad.ebind>` the opposite
of ``bind`` method that works only when monad is failed

``efmap`` can be used to fix some fixable errors
during the pipeline execution:

.. code:: python
from dry_monads.either import Failure
Expand All @@ -92,8 +95,8 @@ monads like ``Failure`` and ``Nothing``:
Failure(1).efmap(double)
# => Will be equal to Success(2.0)
So, ``efmap`` can be used to fix some fixable errors
during the pipeline execution.
``ebind`` can return any monad you want.
It can also fix your flow and get on the right track again:

.. code:: python
Expand All @@ -107,9 +110,6 @@ during the pipeline execution.
Failure(ZeroDivisionError).ebind(fix)
# => Will be equal to Success(0)
``ebind`` can return any monad you want.
It can also be fixed to get your flow on the right track again.

Unwrapping values
~~~~~~~~~~~~~~~~~

Expand Down

0 comments on commit a0ddbc1

Please sign in to comment.