Function backend::utils::dedup::remove_duplicate [−][src]
Expand description
Remove duplicate elements from a vector.
Use sort_unstable and dedup to remove duplicates from a vector.
Parameters
v
: The vector to dedup.
Generic Parameters
T
: The type of the elements in the vector. Should beOrd
andPartialEq
.
Returns
A vector with no duplicate elements.