Hi all,
I have an ArrayList1 of multiple values. Here is an exaple of the a potential ArrayList1:
a,a,b,,c,a,b,c,c,c,a,b
Does anyone have any suggestion whereby I could output the count for wach unique item:
a=4
b=3
c=4
I have done this in python with a defaultdict(int) and was wondering if there was a quick way in C# to do this other than creating another ArrayList2 containing a unique set of the items from all od the items in ArrayList1 and then iterating through ArrayList1 counting the values for i where i is drevied from ArrayList2.
Any guidance or a starting point is much appreciated.
G.