Search
 
SCRIPT & CODE EXAMPLE
 

SCALA

scala match default

something match {
    case "val" => "found match!!"
    case _ => "default case"
}
Comment

scala match

val x: Int = Random.nextInt(10)

x match {
  case 0 => "zero"
  case 1 => "one"
  case 2 => "two"
  case _ => "other"
}
Comment

PREVIOUS NEXT
Code Example
Scala :: print hello world in scala 
Scala :: scala function 
Scala :: scala map example 
Scala :: scala match 
Scala :: is there scala lint 
Scala :: How to have scalable images using image view xamarin XML 
Scala :: scala linters 
Actionscript :: read pdf web on android 
Actionscript :: mount_osxfuse: /Users/em/mount_dev: Input/output error 
Excel :: google sheets split cell by delimiter 
Excel :: how to reference data from another sheet in excel 
Excel :: google sheets filter cells that match 
Perl :: perl variables 
Perl :: How to run a pearl script 
Pascal :: pascal sleep 
Powershell :: CMD & Powershell History 
Gdscript :: godot check if object is in group 
Clojure :: clojure def 
Cobol :: cobol 
Assembly :: assembly print 
Assembly :: vba concatenate strings and integer 
Javascript :: jquery vslidation remove spaces from input 
Javascript :: jquery 2 decimal places 
Javascript :: how to insatll react-router-dom 
Javascript :: jquery delay 1 second 
Javascript :: chrome design mode console 
Javascript :: f.select on change jquery 
Javascript :: execute after one second javascript 
Javascript :: electron hide menu bar 
Javascript :: javacsript update text in span 
ADD CONTENT
Topic
Content
Source link
Name
6+1 =