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
Describe Your Feature Add a match statement, which matches a given value against different possible values using the match trait.
Provide a Code Snippet Using Your Feature
fn test() { match 3 { 1 => return false; 2 => return false; 3..=10 => return true; } }
Prerequisites The match trait: #9
Additional Information Look at how for-loops call the Iter trait from inside them to figure out how to implement this.
The text was updated successfully, but these errors were encountered:
I will try to do this one
Sorry, something went wrong.
a11155
No branches or pull requests
Describe Your Feature
Add a match statement, which matches a given value against different possible values using the match trait.
Provide a Code Snippet Using Your Feature
Prerequisites
The match trait: #9
Additional Information
Look at how for-loops call the Iter trait from inside them to figure out how to implement this.
The text was updated successfully, but these errors were encountered: