Question: Define a zip function in Scheme. It takes two lists and returns a list of pairs of items in the two input lists. For instance,

Define a zip function in Scheme. It takes two lists and returns a list of pairs of items in the two input lists. For instance, (zip '(1 3 9) '(2 4 8)) should return the list ((1 2) (3 4) (9 8)). Your function should return 'error when the two input lists are not of the same length
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
