C
C#•2y ago
kunio_kun

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
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
mikernet
mikernet•2y ago
What do you mean by "each combination"? You only need 3 comparisons first == second and first == third and first == fourth
kunio_kun
kunio_kun•2y ago
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
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
kunio_kun
kunio_kun•2y ago
i see thought could do somthing like >= 1980 and <= 1989 but wasnt successful, maybe not the correct syntax but thanks 😄
Unknown User
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View