示例#1
0
def identity_monad():
    return monad(identity_functor, identity, identity)
示例#2
0
文件: error.py 项目: andorp/monadic
def error_monad():
    return monad(error_functor, join, unit)
示例#3
0
文件: list.py 项目: andorp/monadic
def list_monad():
    return monad(list_functor, join, unit)
示例#4
0
文件: none.py 项目: andorp/monadic
def none_monad():
    return monad(none_functor, join, unit)
示例#5
0
文件: maybe.py 项目: andorp/monadic
def maybe_monad():
    return monad(maybe_functor, join, unit)