News for hackers. Stuff that matters.
Re:Calculate n + 1 without using + or - or * or / by code4pizza on Saturday July 02, 2011 @08:31AM (#2721525)
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.

There are no comments on this comment yet.