摘要: Haskell学习笔记--The state monad 状态变换器 快快快在回宿舍前搞完 失败了 状态变换器 type ST a = State -> ( a , State ) 返回变换后的状态和一个参数a type定义的类型不能被弄成monad,所以改成用newtype newtype ST 阅读全文
posted @ 2021-11-14 22:19 liankewei123456 阅读(34) 评论(0) 推荐(0) 编辑