2 ms·
zip is useful to have as a library function in a Lisp dialect in spite of being easily able to compose it with mapcar and list. It comes up fairly often in mac
by kazinator 4y ago
zip is useful to have as a library function in a Lisp dialect in spite of being easily able to compose it with mapcar and list.
It comes up fairly often in macros. E.g. you have gens, a list of gensyms, and exprs, a list of expressions, and body, a list of forms that refer to the gensyms:
`(let ,(zip gens exprs) ,@body)