Let's say I have a list of lists
{ { 'a', 'b', 'c'}, {'d', 'e', 'f'} }
How can I project these to a flat list of the form:
{ {'a', 0}, {'b', 0}, {'c', 0}, {'d', 1}, {'e', 1}, {'f', 1}}
where the 2nd field of each resulting element is the index of the inner list ?