如何从dartz那里只获得右手边的值?
代码是
Some(EitherValue)输出是:
Some(Right("hi")) 如何在没有“一些(对)”的情况下获得hi的价值?
发布于 2022-01-04 22:47:36
EitherValue.getOrElse(() => ""); // the function should return the same type of Right hand sidehttps://stackoverflow.com/questions/70585185
复制相似问题