[plt-scheme] for-each - analagous to map

From: Eli Barzilay (eli at barzilay.org)
Date: Mon Feb 16 01:20:52 EST 2009

On Feb 15, wooks wrote:
> [...]
> Does for-each share maps ability to traverse multiple lists in this
> way.

Yes -- it's easy to try it:

  (for-each (lambda (x y) (printf "~s: ~s\n" x y)) '(1 2 3) '(a b c))

-- 
          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                  http://www.barzilay.org/                 Maze is Life!


Posted on the users mailing list.