https://d.puremagic.com/issues/show_bug.cgi?id=11507


Chuck Allison <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]


--- Comment #2 from Chuck Allison <[email protected]> 2013-11-13 10:19:40 
PST ---
Is this what you had in mind?

    string[] words = (cast(string)(read(filename))).split();
    int[string] counts;
    foreach (word; words)
        ++counts[word];
    foreach (w; sort(counts.keys))
        writefln("%s: %d", w, counts[w]);

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to