I have a function:
def func(a: int, b: int, c: double): int
And I want to match various possible scenarios
- Wherever
c
is 0, returnb-a
- Wherever
c
> 9, return 0 - Wherever
a=b
return 0
And so on, before doing some more complex logic if none of the above are satisfied.
Do I have to match c separately first, or can I match on a,b,c, like _,_,0
?