range cases
Opened this issue · 0 comments
awestlake87 commented
switch 'c'
case 'a'..'z'
case 'A'..'Z'
print("alpha")
case '0'..'9'
print("numeric")
default
print("other")
Opened this issue · 0 comments
switch 'c'
case 'a'..'z'
case 'A'..'Z'
print("alpha")
case '0'..'9'
print("numeric")
default
print("other")