For example, I have the following lists:
A B
"a" c("1","2")
"b" c("3","4","5")
where A is a list of strings and B is a list of tuples of strings. and I want to the the following list:
C
c("a","1")
c("a","2")
c("b","3")
c("b","4")
c("b","5")
which is a list with one element in A and one element in the corresponding tuple in B.