[Issue 11978] New: std.algorithm canFind uses "value" where it means "needle"
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jan 23 08:05:50 PST 2014
https://d.puremagic.com/issues/show_bug.cgi?id=11978
Summary: std.algorithm canFind uses "value" where it means
"needle"
Product: D
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: websites
AssignedTo: nobody at puremagic.com
ReportedBy: regan at netmail.co.nz
--- Comment #0 from Regan Heath <regan at netmail.co.nz> 2014-01-23 08:05:44 PST ---
from std.algorithm:
bool canFind(alias pred = "a == b", R, E)(R haystack, E needle) if
(is(typeof(find!pred(haystack, needle))));
Returns true if and only if **value** can be found in range. Performs
Ο(needle.length) evaluations of pred.
What is **value** shouldn't that be needle?
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list