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

Scheme sucks

Name: Anonymous 2011-01-28 10:46

because HAS NO MACROS.

Name: Anonymous 2011-01-28 11:56

LISP (DSL)

len [x@xs] -> 1+xs.len

Scheme/Racket:

(define len 
  (@
   `(,x . ,(app (@ (? (@ `() -> #t
                         x -> #f)
                      x) -> 1
                   (? (@ (app len x) -> (> x 0)) x) -> (add1 (len x)))                   
                l)) -> l))

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