Re: Cannot reduce an empty iterable w/o an explicit seed value

2017-11-13 Thread Vino via Digitalmars-d-learn
On Thursday, 9 November 2017 at 13:24:45 UTC, Nicholas Wilson wrote: On Thursday, 9 November 2017 at 12:40:49 UTC, Vino wrote: [...] The problem is subdirTotalGB = ((reduce!((a,b) => a + b)(SdFiles)) / 1024 / 1024 / 1024); with reduce you need to give it a seed (an initial value to start

Re: Cannot reduce an empty iterable w/o an explicit seed value

2017-11-09 Thread Nicholas Wilson via Digitalmars-d-learn
On Thursday, 9 November 2017 at 12:40:49 UTC, Vino wrote: Hi All, Request your help, when i execute the below line of code i am getting an error message as "Cannot reduce an empty iterable w/o an explicit seed value" , The below lie of code will iterate several file system and w

Re: Cannot reduce an empty iterable w/o an explicit seed value

2017-11-09 Thread Nicholas Wilson via Digitalmars-d-learn
On Thursday, 9 November 2017 at 12:40:49 UTC, Vino wrote: Hi All, Request your help, when i execute the below line of code i am getting an error message as "Cannot reduce an empty iterable w/o an explicit seed value" , The below lie of code will iterate several file system and w

Cannot reduce an empty iterable w/o an explicit seed value

2017-11-09 Thread Vino via Digitalmars-d-learn
Hi All, Request your help, when i execute the below line of code i am getting an error message as "Cannot reduce an empty iterable w/o an explicit seed value" , The below lie of code will iterate several file system and will report the size of the folder (level 1) which is gr