You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should add the ability to match over ranges with pattern matching something like the example below (Note we have not yet implemented range syntax so this is subject to change):
match(char){'A'..'Z' => print("Character is Uppercase Alpha"),'a'..'z' => print("Character is LowerCase Alpha"),'0'..'9' => print("Character is numeric"),'_' => print("Character is _"),
_ => print("Other Character")}
The text was updated successfully, but these errors were encountered:
We should add the ability to match over ranges with pattern matching something like the example below (Note we have not yet implemented range syntax so this is subject to change):
The text was updated successfully, but these errors were encountered: