I'm writing a switch statement in Stanza and some of my cases are the same. I'd like to minimize code repetition. How can I merge cases together?
val a = randomSmallInteger()
switch(a) :
0 : println("zero")
1 : println("one")
2 : println("two or three")
3 : println("two or three")
I imagine it would look like
switch(a) :
0 : println("zero")
1 : println("one")
2,3 : println("two or three")