Enable fall-through behavior in switch cases
masterBy default, switchlang cases are exclusive. To allow a matched case to execute the subsequent case as well, set fallthrough=True in the s.case() method. When multiple cases execute due to fall-through, the return value of the last executed function is what is stored in s.result.
value = 2
with switch(value) as s:
s.case(1, lambda: 'one')
s.case(2, lambda: 'two', fallthrough=True)
s.case(3, lambda: 'three') # runs because of fallthrough
s.default(lambda: 'other')
print(s.result) # 'three'