counting words

Benjamin Thaut code at benjamin-thaut.de
Fri Jun 28 09:05:10 PDT 2013


I'm currently making a few tests with std.algorithm, std.range, etc

I have a arry of words. Is it possible to count how often each word is 
contained in the array and then sort the array by the count of the 
individual words by chaining ranges? (e.g. without using a foreach loop 
+ hashmap)?

-- 
Kind Regards
Benjamin Thaut


More information about the Digitalmars-d-learn mailing list