[plt-scheme] Outer-inner loops in Scheme?

From: Grant Rettke (grettke at acm.org)
Date: Tue May 15 00:15:16 EDT 2007

On 5/14/07, Matthias Felleisen <matthias at ccs.neu.edu> wrote:
> Do you mean this:
> ;; Pretty Big
> (define (test)
>    (define range (build-list 10 identity))
>    (for-each (lambda (x) (for-each (lambda (y) (printf "~a ~a\n" x
> y)) range)) range))

An example like this may seem trivial, but it is pretty helpful for
someone new to Scheme to see!

Posted on the users mailing list.