Pattern Matching to Check if 4 uint have the same value
Is there a shorter way so we dont have to check with equality operator for each combination?
6 Replies
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
What do you mean by "each combination"?
You only need 3 comparisons
first == second and
first == third and
first == fourth
oh yeah you're right
only need 3 of those
but still is there even shorter way maybe with pattern matching to do this without equality operator?
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
i see
thought could do somthing like
>= 1980 and <= 1989
but wasnt successful, maybe not the correct syntax
but thanks 😄Unknown User•3y ago
Message Not Public
Sign In & Join Server To View