B
Burlsm
hi
i'm having a little trouble with closures and i'd like to know what
the equivalent code for the canonical make-adder procedure would in
ruby,
in scheme it would be like
(define (make-adder n)
(lambda (x) (+ x n))
thanks in advance
i'm having a little trouble with closures and i'd like to know what
the equivalent code for the canonical make-adder procedure would in
ruby,
in scheme it would be like
(define (make-adder n)
(lambda (x) (+ x n))
thanks in advance