设为首页 加入收藏

TOP

Scalaz(25)- Monad: Monad Transformer-叠加Monad效果(四)
2017-10-10 12:13:21 】 浏览:7728
Tags:Scalaz Monad Transformer- 叠加 效果
nbsp;

EitherT.eitherT(M[Either[A]]) >>> EitherT[M,A] EitherT.eitherT(List(3.right[String])) = EitherT(List(\/-(3))

 

State.lift[M[A]] >>> StateT[M,A]  get[Int].lift[Option] = StateT[Option,Int]

 

注意:以上采用了形象类型表述

 

 

 

 

 

 

 

 

 

 

首页 上一页 1 2 3 4 5 下一页 尾页 4/5/5
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇Scalaz(26)- Lens: 函数式不.. 下一篇Scalaz(27)- Inference & Unap..

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目