We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
match
Rust's match blocks have some neato features, like range matching and stuff. Is there a way to make an operator that can work like that?
~Rust:
match x { 0 => ... 1..9 => ... 10 | 20 | 30 | 40 | 50 | 60 | 70 | 80 | 90 => ... _ => ... }
Python:
if x == 0: ... elif 1 <= x <= 9: ... elif x in (10, 20, 30, 40, 50, 60, 70, 80, 90): ... else: ...
Mask:
if x ? 0: ... elif x ? 1..9: ... elif x ? [10, 20, 30, 40, 50, 60, 70, 80, 90]: ...
DUNNO.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Rust's
match
blocks have some neato features, like range matching and stuff. Is there a way to make an operator that can work like that?~Rust:
Python:
Mask:
DUNNO.
The text was updated successfully, but these errors were encountered: