Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SCALA

scala option

val nameMaybe = request getParameter "name"
nameMaybe match {
  case Some(name) =>
    println(name.trim.toUppercase)
  case None =>
    println("No name value")
}
Source by www.scala-lang.org #
 
PREVIOUS NEXT
Tagged: #scala #option
ADD COMMENT
Topic
Name
1+2 =