Suppose i am having mapping in following way :
[ (1,List[11,12,13]),(2,List[21,22,23]),(3,List[31,32,33]) ]
i want to convert/transform this in the form shown below :
[ (1,11),(1,12),(1,13),(2,21),(2,22),(2,23),(3,31),(3,32),(3,33)]
I am using scala 2.10.4