Related problem: I end up with a list of `(1, 2, [...
# getting-started
m
Related problem: I end up with a list of
(1, 2, [‘a’]), (2, 3, [‘a’]), (1, 2, [‘b’])
triplets. What I need is
(1, 2, [‘a’, ‘b’]), (2, 3, [‘a’])
. Is there a idiomatic way to act on the extra elements? I can come up with an ugly way, a nested for loop with a mutable list and some other troubled things but I was looking for a more functional approach.