We can meet these requirements by using Either as the return type of the function: import scala.util.{Either, Left, Right} def checkString(value: String): ...
確定! 回上一頁