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

LISA NEEDS BRACES

Name: Anonymous 2007-04-21 8:56 ID:j/8D4ih9

I'm happy with my forced indentation (Haskell), thank you very much.

Name: Anonymous 2012-06-21 1:23

>>67

It's an example of super indent.

Example:


(define (factorial n)
(letrec ((fac (lambda (n accumulation)
(if (= n 0)
accumulation
(fac (- n 1) (* n accumulation)))))
(fac n 1)))

int factorial(int n) {
int fac(int n, int accumulation) {
if(n == 0)
return accumulation
else
return fac(n - 1, n*accumulation);
}
return fac(n, 1);
}

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