Clock.currTime
    Kent via Digitalmars-d-learn 
    digitalmars-d-learn at puremagic.com
       
    Thu Nov 20 08:00:29 PST 2014
    
    
  
On Thursday, 20 November 2014 at 15:56:34 UTC, Adam D. Ruppe
wrote:
> On Thursday, 20 November 2014 at 15:45:55 UTC, Kent wrote:
>>    foreach(file; filtered.take!(10))
>
> Oh, there shouldn't be a ! there either. Should be take(10), 
> not take!(10).
>
> That's my mistake too...
>
>>        writeln(fiel.name);
>
> also file is misspelled.
Thank you very much for help me.
I notice another problem:
       foreach(file; filtered.take!(10)){...}
This line has errors.I read the stdlib reference, and change the
line to:
       foreach(file; take(filtered, 10)){...}
It becomes right.
Thank you again.
    
    
More information about the Digitalmars-d-learn
mailing list