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

closures

Name: Anonymous 2011-11-07 17:48

this thread is dedicated to javascript's most important innovation: the concept of functions that capture their lexical environment

Name: Anonymous 2011-11-07 23:03

>>6

(define (incarr n)
 (define (incarr-iter n i)
 (cond
  ((= n i) '())
  (else (cons i (incarr-iter n (+ i 1))))))
 (incarr-iter n 0))

(define arr (incarr 10))

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