I have the following lists of tuples:
List 1:
[("key-1", Type1, Type2, Type3), ("key-2", Type1, Type2, Type3)]
List 2:
[("key-1", Type4), ("key-2", Type4)]
and I want to merge these tuples by its first component so that the following result is produced:
Result List:
[("key-1", Type1, Type2, Type3, Type4), ("key-2", Type1, Type2, Type3, Type4)]
In what way can I create the result list?