I have a vector of tuples:
let v = vec![(1, 1), (1, 1), (1, 3), (1, 4), (2, 2), (2, 4), (2, 6)];
and I would like to split it into two lists. The first list containing the first element from each of the tuples and the second containing the second one, i.e.:
l1 = [1, 1, 1, 1, 2, 2] and l2 = [1, 1, 3, 4, 2, 4].
How can I do this?