I am new to Racket and have just started the tutorials.

In section 7 "Lexical Scope" of the Quick introduction
http://download.racket-lang.org/releases/6.6/doc/quick/index.html

there is this code:

(define series
  (lambda (mk)
    (hc-append 4 (mk 5) (mk 10) (mk 20))))

(define (rgb-series mk)
  (vc-append
   (series (lambda (sz) (colorize (mk sz) "red")))
   (series (lambda (sz) (colorize (mk sz) "green")))
   (series (lambda (sz) (colorize (mk sz) "blue")))))

I am having difficulty understanding how the numbers 5, 10, and 20
in the first definition 
become "sz"  in the second definition. 

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to