Parse a String given some delimiters

Alfred Newman via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Oct 30 17:30:02 PDT 2016


On Sunday, 30 October 2016 at 23:47:54 UTC, Ali Çehreli wrote:
> On 10/30/2016 01:50 PM, Alfred Newman wrote:
>> [...]
>
> Here is something along the lines of what others have suggested:
>
> auto parse(R, S)(R range, S separators) {
>     import std.algorithm : splitter, filter, canFind;
>     import std.range : empty;
>
> [...]

Thank you @all.

@Ali, that's exactly what I was looking for.
The phobos is awesome (and pretty huge).

Cheers



More information about the Digitalmars-d-learn mailing list