def Array.mergeDedupWith {α : Type u_1} [ord : Ord α] (xs ys : Array α) (merge : α → α → α) :
Array α
O(|xs| + |ys|). Merge arrays xs and ys, which must be sorted according to compare and must
not contain duplicates. Equal elements are merged using merge. If merge respects the order
(i.e. for all x, y, y', z, if x < y < z and x < y' < z then x < merge y y' < z)
then the resulting array is again sorted.