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

Syntax for typed lamdas

Name: Anonymous 2012-06-09 21:56

Help me /prog/, i'm making a language and i can't decide on what syntax to use for typed lambdas

Name: Anonymous 2012-06-11 2:40

>>10

(factorial 0)
(factorial 1)

You ain't read no SICP today.

(define factorial
 (lambda (x)
  (cond ((zero? x) 1)
   (else (* x (factorial (- x 1)))))))

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