标签: scala either
考虑一下代码:
CURRENT_VALUE
为什么r是val some: OneCaseClass Either TwoCaseClass = ??? val r = some.left.map(_.toString) 类型而不是Serializable with Product with Either[String, TwoCaseClass]?
val some: OneCaseClass Either TwoCaseClass = ??? val r = some.left.map(_.toString)
Serializable with Product with Either[String, TwoCaseClass]
如何仅映射左值?