Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SCALA

scala pattern matching

list match{
case head::tail => print(head)
case _ => print("It is not list")
}
 
PREVIOUS NEXT
Tagged: #scala #pattern #matching
ADD COMMENT
Topic
Name
9+9 =