how to design a function that merge two lists into one list.
the first element of first list will be the first element of the new list and the first element of the second list will be the second element of the new list
(a,b,c,d,e,f) (g,h,i) will be (a,g,b,h,c,i,d,e,f,)
how to design a function that merge two lists into one list. the first
Share
The procedure you’re trying to implement is known as
interleaveormerge. Because this looks like homework, I can’t leave you a straight answer, instead I’ll point you in the right direction; fill-in the blanks: