Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

int array to frequency dictionary c#

using System.Linq;

List<int> ids = //

foreach(var grp in ids.GroupBy(i => i))
{
    Console.WriteLine("{0} : {1}", grp.Key, grp.Count());
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #int #array #frequency #dictionary
ADD COMMENT
Topic
Name
5+6 =