Suggestion: needleless findSplit* methods
Seb
seb at wilzba.ch
Tue Dec 12 09:25:57 UTC 2017
On Tuesday, 12 December 2017 at 08:19:39 UTC, Piotr Mitana wrote:
> Hello,
>
> I'd like to make a little suggestion for phobos: enrich
> findSplit* method family with the "needleless" predicate option.
>
> [...]
... or you simply use `until`:
auto r = ["23", "42", "14.3", "-323", "}"];
r.until!(x => !x.isNumeric).map!(to!double).writeln;
Runnable example: https://run.dlang.io/is/zNRzpI
More information about the Digitalmars-d
mailing list