Re: Converting from DirIterator to string[] without a loop

2017-01-14 Thread Dave Chapman via Digitalmars-d-learn
On Saturday, 14 January 2017 at 01:02:38 UTC, Ali Çehreli wrote: On 01/13/2017 04:29 PM, Dave Chapman wrote: > When I use auto and print out the type of b it is something like > args.main.FilterResult!(__lambda2, DirIterator).FilterResult and for the > "if" version of > b and args.main.FilterRe

Re: Converting from DirIterator to string[] without a loop

2017-01-13 Thread Ali Çehreli via Digitalmars-d-learn
On 01/13/2017 04:29 PM, Dave Chapman wrote: > When I use auto and print out the type of b it is something like > args.main.FilterResult!(__lambda2, DirIterator).FilterResult and for the > "if" version of > b and args.main.FilterResult!(__lambda3, DirIterator).FilterResult for > the "else" versio

Converting from DirIterator to string[] without a loop

2017-01-13 Thread Dave Chapman via Digitalmars-d-learn
I would like to do something like the code shown below but I can't figure out how to do it without loops inside the if statement. When I use auto and print out the type of b it is something like args.main.FilterResult!(__lambda2, DirIterator).FilterResult and for the "if" version of b and args.