Crate sosorted

source ·

Functions

Removes repeated elements in the slice. Returns the length of the prefix that does not contain repeated elements.
Returns the index of the first duplicate entry. If there are no duplicates, the length of ther slice is returned.