splitter for strings
Steven Schveighoffer via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Jun 9 08:54:29 PDT 2014
On Mon, 09 Jun 2014 11:49:29 -0400, monarch_dodra <monarchdodra at gmail.com>
wrote:
> On Monday, 9 June 2014 at 14:21:21 UTC, Steven Schveighoffer wrote:
>> Just looked at std.string for a strip function that allows custom
>> character strippage, but apparently not there. The above is quite
>> awkward.
>>
>> -Steve
>
> It's in algorithm, because it's more generic than just strings.
Ugh.. This makes things difficult. If I want to work with strings, I
import std.string.
I understand that the algorithm is applicable to all types, but this makes
for some awkward coding. What if you wanted to use both? Surely we can
come up with a better solution than this.
-Steve
More information about the Digitalmars-d-learn
mailing list