Copying from one list to another

Hi @Igor_Wolny ,

Here is another way to approach the problem.
I hope it gets you thinking in creative ways →

lst_masterSet = New List(Of String) From {"Ai123", "Ai243", "Bi344", "Bi3443", "Ci24244", "Ci48484"}
lst_searchCriterias = lst_masterSet.Select(Function(s) s.Substring(0,2)).Distinct().ToList()
dict_items = lst_searchCriterias.ToDictionary(Function(k) k, Function(v) lst_masterSet.Where(Function(w) w.StartsWith(v)).ToList())

ListExercise.xaml (5.9 KB)

Kind Regards,
Ashwin A.K

2 Likes