繁体   English   中英

如何从 dartz 只获得右手边的值?

[英]How to obtain only the right hand side value from dartz?

如何从 dartz 只获得右手边的值?

代码是

Some(EitherValue)

output 是:

Some(Right("hi")) 

如何在没有“Some(Right”)的情况下获得 hi 的值?

EitherValue.getOrElse(() => ""); // the function should return the same type of Right hand side

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM