sortUniq
Andrei Alexandrescu via Digitalmars-d
digitalmars-d at puremagic.com
Fri Jan 23 09:40:42 PST 2015
On 1/23/15 7:04 AM, zeljkog wrote:
> 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?
Must be you put that code at top level and the compiler tried to
interpret it during compilation. -- Andrei
More information about the Digitalmars-d
mailing list