[Issue 5508] Update startsWith to take a range of ranges

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jan 8 17:52:41 PST 2013


http://d.puremagic.com/issues/show_bug.cgi?id=5508



--- Comment #6 from Jesse Phillips <Jesse.K.Phillips+D at gmail.com> 2013-01-08 17:52:39 PST ---
(In reply to comment #5)
> No, look again at your example. All ranges have type string[]. Did you actually
> mean this?
> 
> import std.algorithm;
> 
> void main() {
>     auto a = "\r\nHello";
>     assert(startsWith(a, ["\n","\r\n"], ["H"]));
> }
> 
> Note that now a is of type string.

It has been awhile since I wrote this, but I'm at least currently interested in
what you have written.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list