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

From: Grant Rettke (grettke at acm.org)
Date: Mon May 14 10:45:01 EDT 2007

> 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))

Yes.

Now, how does one run through those list (in a similar manner) but backwards:

http://projecteuler.net/index.php?section=problems&id=4

?


Posted on the users mailing list.