2 ms·
data Nat = Zero | Succ n plus1 = Succ Probably not the answer they were looking for, but it was the first thing that came into my head.
by code4pizza 15y ago
data Nat = Zero | Succ n
plus1 = Succ
Probably not the answer they were looking for, but it was the first thing that came into my head.