zip function "zips" two lists. Write your own implementation of
Define a function named
zap. The function takes two parameters,
These are lists.
Your function should return a list of tuples. Each tuple
should contain one item from the
a list and one from
You may assume
b have equal lengths.
If you don't get it, think of a zipper.
zap( [0, 1, 2, 3], [5, 6, 7, 8] )
[(0, 5), (1, 6), (2, 7), (3, 8)]