For the number 6
, the result is (0, 1)
. This example matches the second switch
case, (0, _)
, because the underscore (_
) is a wildcard pattern that matches any value. This returns "Fizz!"
.
For the number 6
, the result is (0, 1)
. This example matches the second switch
case, (0, _)
, because the underscore (_
) is a wildcard pattern that matches any value. This returns "Fizz!"
.