previous | index | next

Interleaving Lists

Suppose we want to interleave lst1 and lst2.

Q: If lst1 is empty, what is the result of interleaving lst1 and lst2?

A: lst2

Q: If lst1 and lst2 are not empty, and we begin with the first card of lst1, what is the result of interleaving lst1 and lst2?

A:


previous | index | next