duplicates
Returns the elements that appear more than once in items, each one once, in the order they
first appear.
The counterpart of unique: what unique keeps, this reports as repeated.
Import
Section titled “Import”Cargo feature array (enabled by default). To compile only this module:
or in Cargo.toml:
Signature
Section titled “Signature”Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
items | &[T] | The elements to scan. |
Returns
Section titled “Returns”Vec<T>
