[plt-scheme] Why no zip in "list.ss"?

From: Woodhouse, Gregory J. (Gregory.Woodhouse at va.gov)
Date: Wed Dec 27 13:46:00 EST 2006

I could have sworn that zip was included in list.ss, but apparently not. Certainly, it seems a natural.

Anyway, a simple implementation is

(define (zip l1 l2)
(foldr (lambda (v1 v2 l)
(cons (list v1 v2) l)) '() l1 l2))

Assuming I typed that in right, that is!
Sent using BlackBerry

Posted on the users mailing list.