3 lines
117 B
Scala
3 lines
117 B
Scala
import scala.util.control.Exception.allCatch
|
|
|
|
def isNumber(s: String): Boolean = (allCatch opt s.toDouble).isDefined
|