static List<int> mergeIds(List<int> list, List<int> list2) { for(var id in list2){ list = mergeId(list, id); } return list; }