[Issue 8946] « any » function does not what it should do

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Nov 3 14:47:44 PDT 2012


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


timon.gehr at gmx.ch changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |timon.gehr at gmx.ch


--- Comment #5 from timon.gehr at gmx.ch 2012-11-03 14:47:42 PDT ---
(In reply to comment #4)
> ...
> There’s a popFront() function, so why would it be the correct way to search?
> Reusing a « linear search » code is not a point here because we want to _find_
> something. countUntil gives us the position of an element, find should give
> whether the element is or not in a range.

Well, no.

> It returns a range: why ?
> ...

Because that is its specification. What is the issue?

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