doc-src/Tutorial/Misc/natsum
author paulson
Fri, 23 Oct 1998 16:46:33 +0200
changeset 5745 a53ffabc6804
parent 5377 efb799c5ed3c
permissions -rw-r--r--
updated as requested by Markus

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