Bug 3184 – std.algorithm.until should work like "find"
Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2009-07-16T18:48:00Z
Last change time
2015-06-09T01:28:07Z
Assigned to
andrei
Creator
rinick
Comments
Comment #0 by rinick — 2009-07-16T18:48:58Z
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.