def is_even(n):
match n:
case 1:
return False
case 0:
return True
# fix No1
case n < 0:
return is_even(-1*n)
case _:
return is_even(n-2)
SpeakinTelnet
joined 2 years ago
Here's the specific response and it's even better than anticipated.
https://lkml.iu.edu/hypermail/linux/kernel/2401.3/04208.html