doc-src/Tutorial/Misc/natsum
author paulson
Wed, 13 Dec 2000 10:34:45 +0100
changeset 10660 a196b944569b
parent 5377 efb799c5ed3c
permissions -rw-r--r--
another round of tidying-up

consts sum :: nat => nat
primrec
"sum 0 = 0"
"sum (Suc n) = Suc n + sum n"