Woldemort Type can't even call "take" or "array"

Ali Çehreli via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun May 31 00:42:58 PDT 2015


On 05/31/2015 12:36 AM, kerdemdemir wrote:
>> The solution may be as simple as importing std.array (or std.range)
>> but we can't be sure without a short but complete code.
>
> Solution was as simple as importing std.array. Thanks a lot again Ali.
>
> Just for curiosity; why can't I use
> numArr.take(3);
>
> source\app.d(33): Error: no property 'take' for type
> 'MapResult!(unaryFun, FilterResult!(__lambda3, FilterResult!(__lambda2,
> char[][][])))'.

I'm pretty sure that is the following. :)

     import std.algorithm;

Ali



More information about the Digitalmars-d-learn mailing list