[Issue 5507] countUntil should take Ranges... instead of R2

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jan 10 09:33:38 PST 2013


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


Brad Anderson <eco at gnuk.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |eco at gnuk.net


--- Comment #2 from Brad Anderson <eco at gnuk.net> 2013-01-10 09:33:35 PST ---
Hit this answering a StackOverflow question
<http://stackoverflow.com/q/14262766/216300>.  My solution (using countUntil()
on the result of find() with multiple needles) requires two passes which is
unfortunate since there should only need to be one pass.

There is probably a way to avoid this that I didn't see but whatever it is is
probably just as convoluted as my solution.  countUntil should really just
accept multiple needles so consider this my +1.

-- 
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