std.algorithm.splitter improovement?

Marco Leise Marco.Leise at gmx.de
Sat Dec 14 09:00:15 PST 2013


Am Sat, 14 Dec 2013 17:41:22 +0100
schrieb "bearophile" <bearophileHUGS at lycos.com>:

> seany:
> 
> > for example, splitting "hello  world" (two spaces between 
> > words) will return ["hello" , "", "world"]
> 
> It's a bug.
> 
> Bye,
> bearophile

Not at all, the documentation explicitly states:

  assert(equal(splitter("hello  world", ' '), [ "hello", "", "world" ]));

-- 
Marco



More information about the Digitalmars-d-learn mailing list