sortUniq

zeljkog via Digitalmars-d digitalmars-d at puremagic.com
Fri Jan 23 07:04:40 PST 2015


On 22.01.15 22:40, Andrei Alexandrescu wrote:
> There's this classic patter on Unix: |sort|uniq, i.e. sort some data and
> only display the unique elements.
>

Loosely-related, compiling

...
auto ret = arr.filter!(myFilter());
...

I got:

Error: closures are not yet supported in CTFE

Using struct with opCall directly also does not pass.

Did I miss something?
Is it near?


More information about the Digitalmars-d mailing list