Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Factorial in LISP

Name: Anonymous 2011-02-05 13:59


factorial 1->1; n->n*(factorial n-1)


compare to Haskell

factorial::Integer->Integer
factorial 0=1
factorial n=n*factorial(n-1)

Name: Anonymous 2011-02-05 16:22

>>17
But I need a guestbook to store hate mails about how I butchered LISP and misunderstood concepts of Haskell. I also want to provide access for exectuing code directly from browser, so people I troll wont have to install SBCL beforehand or trust that my code wont mess their system.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List