import scala.util.control.Exception._
object Main {
def main(args : Array[String]) : Unit = {
args.filter(allCatch either _.toInt isRight).sorted.foreach(println)
}
}
Go to list of users who liked
More than 5 years have passed since last update.
import scala.util.control.Exception._
object Main {
def main(args : Array[String]) : Unit = {
args.filter(allCatch either _.toInt isRight).sorted.foreach(println)
}
}
Register as a new user and use Qiita more conveniently
Go to list of users who liked