input range from stdin
    via Digitalmars-d-learn 
    digitalmars-d-learn at puremagic.com
       
    Thu Sep 18 08:47:22 PDT 2014
    
    
  
On Thursday, 18 September 2014 at 13:10:06 UTC, krzaq wrote:
> I guess this works for now http://dpaste.dzfl.pl/6801615160e3
>
> I have a follow-up question: why does zip not accept an array?
Because (fixed-sized) arrays don't have a range interface (empty, 
front & popFront()), in particular, popFront cannot be used on 
them. That's why a slice is needed.
Btw, you can just write `array_name[]` without `0 .. $` to get a 
slice of the entire array.
    
    
More information about the Digitalmars-d-learn
mailing list