The needletern to search for.
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 match or haystack.length if no match was found.
test!("==")(rfind([ 1, 2, 3 ], 1), 0);
test!("==")(rfind([ 1, 2, 3 ], [ 1, 2 ]), 0);
auto buffer = createBuffer([ 1, 2, 3 ]); test!("==")(rfind(buffer, 1), 0);
auto buffer = createBuffer([ 1, 2, 3 ]); test!("==")(rfind(buffer, [ 2, 3 ]), 1);
Performs a linear scan of haystack from $(LP)haystack.length .. 0], returning the index of the first element matching needle, or haystack.length if no match was found. Comparisons will be performed using the supplied predicate or '==' if none is supplied.