[Issue 5508] New: Update startsWith to take a range of ranges
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Jan 30 11:31:01 PST 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5508
Summary: Update startsWith to take a range of ranges
Product: D
Version: D2
Platform: Other
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: andrei at metalanguage.com
ReportedBy: Jesse.K.Phillips+D at gmail.com
CC: Jesse.K.Phillips+D at gmail.com
--- Comment #0 from Jesse Phillips <Jesse.K.Phillips+D at gmail.com> 2011-01-30 11:28:48 PST ---
Currently std.algorithm.startsWith accepts any number of ranges. It would be
nice if this case below could pass:
import std.algorithm;
void main() {
auto a = ["\r\nHello"];
assert(startsWith(a, ["\n","\r\n"], ["H"]));
}
--
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