trans.py 文件源码

python
阅读 36 收藏 0 点赞 0 评论 0

项目:ribosome 作者: tek 项目源码 文件源码
def extract(self, data: Awaitable, tail: List[TransEffect], in_state: bool) -> Either[R, N]:
        async def coro_map(run: Callable[[R], TransStep]) -> TransStep:
            res = await data
            return lift(run(res), in_state)
        coro = cont(tail, False, coro_map) | data
        return Lift(Propagate.one(CoroutineAlg(coro).pub))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号