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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!