Once the matching is done, the pivot is no longer in the list xs, and therefore it won't be included twice.
Once the matching is done, the pivot is no longer in the list xs, and therefore it won't be included twice.