On Tuesday, 12 January 2016 at 00:36:15 UTC, Ali Çehreli wrote:
On 01/11/2016 04:28 PM, asdfa wrote:
> Both DMD and GDC complain, saying
> Error: template instance sort!((a, b)
> {
> return freqs[a] > freqs[b];
> }
> ) template 'sort' is not defined
That issue is already in the errata:
http://erdani.com/tdpl/errata/
Add the following line to fix:
import std.algorithm;
Ali
Thank you so much! It works now
well it does after I changed
writefln("%6u\t%s", freqs[word], words);
to
writefln("%6u\t%s", freqs[word], word);
(stupid mistake I made copying)