contains

Performs a linear scan of buf from [0 .. buf.length$(RP), returning true if an element matching pat is 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: equals_t

True if an element equivalent to pat is found, false if not.

Meta