rfind

Performs a linear scan of buf from $(LP)buf.length .. 0], returning the index of the first element matching pat, or buf.length if no match was found. Comparisons will be performed using the supplied predicate or '==' if none is supplied.

Parameters

buf Elem[]

The array to search.

pat Elem

The pattern to search for.

pred Pred2E

The evaluation predicate, which should return true if e1 is equal to e2 and false if not. This predicate may be any callable type.

Return Value

Type: size_t

The index of the first match or buf.length if no match was found.

Meta