missingFrom

Returns a new array containing all elements in setA which are not present in setB. Both setA and setB are required to be sorted. Comparisons will be performed using the supplied predicate or '<' if none is supplied.

  1. Elem[] missingFrom(Elem[] setA, Elem[] setB, Pred2E pred)
    version(TangoDoc)
    missingFrom
  2. template missingFrom(BufA, BufB)
  3. template missingFrom(BufA, BufB, Pred)

Parameters

setA Elem[]

The first sorted array to evaluate.

setB Elem[]

The second sorted array to evaluate.

pred Pred2E

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

Return Value

Type: Elem[]

A new array containing the elements in setA that are not in setB.

Meta