|
|
|
|
|
by foldr
2265 days ago
|
|
This would be equally clear if the author had just used a sequence of if statements with a 'return' in each one. (Note that Javascript's case has fallthrough, so you can't immediately conclude that only one branch of a case will be executed.) |
|