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
Describe Your Feature
A match trait to be used with the match block.
Provide a Code Snippet Using Your Feature
fntest(){// Match 4 to an inclusive range from 0 to 5return4.matches(0..=5);}
Additional Information
Match should be implemented for everything Equals implements (Look at how NotEquals is implemented).
Match should only work on inclusive ranges, checking if the value is within the range.
The text was updated successfully, but these errors were encountered:
Describe Your Feature
A match trait to be used with the match block.
Provide a Code Snippet Using Your Feature
Additional Information
Match should be implemented for everything Equals implements (Look at how NotEquals is implemented).
Match should only work on inclusive ranges, checking if the value is within the range.
The text was updated successfully, but these errors were encountered: