The array to evaluate.
The array to match against.
The evaluation predicate, which should return true if e1 is equal to e2 and false if not. This predicate may be any callable type.
The index of the first mismatch or N if the first N elements of arr and arr_against match, where N = min$(LP)arr.length, arr_against.length$(RP).
// result must not change from swapping argument order: auto buffer1 = createBuffer("abcxefg"); auto buffer2 = createBuffer("abcdefg"); test!("==")( mismatch(buffer1, buffer2), 3 ); test!("==")( mismatch(buffer2, buffer1), 3 );
// result must not change from swapping argument order: test!("==")(mismatch("abcxefg", "abcdefg"), 3); test!("==")(mismatch("abcdefg", "abcxefg"), 3);
Performs a parallel linear scan of arr and arr_against from [0 .. N$(RP) where N = min(arr.length, arr_against.length), returning the index of the first element in arr which does not match the corresponding element in arr_against or N if no mismatch occurs. Comparisons will be performed using the supplied predicate or '==' if none is supplied.
If the input arrays are not sorted in the same way, or they have different number of duplicate items, see bsubset.