Performs a linear scan of buf from [0 .. buf.length$(RP), returning a count of the number of elements matching pat. Comparisons will be performed using the supplied predicate or '==' if none is supplied.
The array to scan.
The pattern to match.
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 number of elements matching pat.
See Implementation
Performs a linear scan of buf from [0 .. buf.length$(RP), returning a count of the number of elements matching pat. Comparisons will be performed using the supplied predicate or '==' if none is supplied.