remove

Performs a linear scan of buf from [0 .. buf.length$(RP), moving all elements matching pat to the end of the sequence. The relative order of elements not matching pat will be preserved. Comparisons will be performed '=='.

Parameters

buf Elem[]

The array to scan. This parameter is not marked 'ref' to allow temporary slices to be modified. As buf is not resized in any way, omitting the 'ref' qualifier has no effect on the result of this operation, even though it may be viewed as a side-effect.

pat Elem

The pattern to match against.

Return Value

Type: size_t

The number of elements that do not match pat.

Meta