如何将其转换为Int而不是 Some(Int)
Some(Int)
val a: Option[Any] = Some(1)
我试过toInt,它给了一个错误value toInt is not a member of Option[Any]
toInt
value toInt is not a member of Option[Any]
scala
scala ×1