- :nothing
case
initiate a case block to check for different cases
Parameters
case predicate :null :block
Returns
Examples
copya: 2 case [a] when? [<2] -> print "a is less than 2" when? [=2] -> print "a is 2" else -> print "a is greater than 2"
case predicate :null :block
copya: 2 case [a] when? [<2] -> print "a is less than 2" when? [=2] -> print "a is 2" else -> print "a is greater than 2"