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 23:13

Non-toy language is non-toy. And learn2 HTTP.
[m]$ nc python.org 80
HEAD / HTTP/1.1
host: python.org

HTTP/1.1 200 OK
Date: Sun, 06 Feb 2011 04:06:44 GMT
Server: Apache/2.2.9 (Debian) DAV/2 SVN/1.5.1 mod_ssl/2.2.9 OpenSSL/0.9.8g mod_wsgi/2.5 [/code]Python/2.5.2
Last-Modified: Fri, 04 Feb 2011 10:18:37 GMT
ETag: "105800d-49a0-49b72348bd940"
Accept-Ranges: bytes
Content-Length: 18848
Content-Type: text/html

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