D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 3184 - std.algorithm.until should work like "find"
Summary: std.algorithm.until should work like "find"
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: All All
: P2 enhancement
Assignee: Andrei Alexandrescu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-16 18:48 UTC by ZY Zhou
Modified: 2015-06-09 01:28 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description ZY Zhou 2009-07-16 18:48:58 UTC
int[] arr = [2,4,7,8,10];
find(arr,7);         // OK
find!("a>b")(arr,7); // OK
find!("a&1")(arr);   // OK

until(arr,7);        // OK
until!("a>b")(arr,7);// OK
until!("a&1")(arr);  // Error require 2 parameters

Have to use until!("a&1")(arr, 0). However the second parameter is never used here.