File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3737- ``liftm``, ``liftm2``, ``liftm3`` — lift regular functions into monadic ones
3838
3939The subpackage is **not** re-exported at the top level of ``unpythonic`` —
40- import directly as ``from unpythonic.monads import Maybe``, etc. This
41- matches the pattern of ``from unpythonic.env import env``.
40+ import directly as ``from unpythonic.monads import Maybe``, etc. This is
41+ because ``unpythonic`` is mostly lispy, not haskelly, and some of these
42+ constructs have names that could be confusing in the top-level namespace.
4243
4344For do-notation syntax over any of these monads, see the macro
4445``from unpythonic.syntax import monadic_do``.
6263- http://www.valuedlessons.com/2008/01/monads-in-python-with-nice-syntax.html
6364
6465This subpackage is ported from the teaching code at
65- https://github.com/Technologicat/python-3-scicomp-intro/blob/master/examples/monads.py.
66+ https://github.com/Technologicat/python-3-scicomp-intro/blob/master/examples/monads.py
6667"""
6768
6869from .abc import * # noqa: F401, F403
You can’t perform that action at this time.
0 commit comments