(defun zip-list (al bl)
(if (not (equal (length al) (length bl))) nil
(progn
(let ((ls nil))
(while (not (null al))
(setq ls (cons (cons (car al) (car bl)) ls))
(setq al (cdr al))
(setq bl (cdr bl)))
(reverse ls)))))
(zip-list (list 1 2 3) (list 4 5 6))
The above program was wrote by me at the interval of my work. Now sometime to write
a segment of scheme or Emacs lisp code became an interesting of mine.