These functions allow deduplicating elements in a slice, either via
direct comparison or via a function that returns a key to be used for
comparison.
Signed-off-by: Andrew Dunham <[email protected]>
Change-Id: Ie6a20acf0431247487ac5ead110d56580dacfee4