Looking for an equivalent to C++ std::getline in D

k-five via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat May 6 01:34:11 PDT 2017


On Friday, 5 May 2017 at 17:07:25 UTC, Stanislav Blinov wrote:
> On Friday, 5 May 2017 at 09:54:03 UTC, k-five wrote:

======================================================

Thanks.
I only needed this part since it filters the empty elements and 
this is enough for me:
auto input = args[1].splitter('/').filter!"!a.empty"();

but if your are wailing please explain what is the type of 
"input" since I think this is an array but after testing it has 
no [] - index operator ( imput[ 0 ] is fail )

Also what is the parameter "a.empty" for template filter


More information about the Digitalmars-d-learn mailing list