4 ms·
Most functional languages also allow you to do something like this which is pretty much the same idea as guard clauses: foo 0 = 0 foo 1 = 1 foo n = .
by platinumrad 9y ago
Most functional languages also allow you to do something like this which is pretty much the same idea as guard clauses:
foo 0 = 0
foo 1 = 1
foo n =
...