MCPcopy Create free account
hub / github.com/andeya/algorithm / Dedupe

Function Dedupe

sortutil/sortutil.go:254–271  ·  view source on GitHub ↗

Dedupe returns n, the number of distinct elements in data. The resulting elements are sorted in elements [0, n) or data[:n] for a slice.

(data sort.Interface)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

TestDedupFunction · 0.85
ExampleDedupeFunction · 0.85

Calls 4

LenMethod · 0.65
SortMethod · 0.65
LessMethod · 0.65
SwapMethod · 0.65

Tested by 2

TestDedupFunction · 0.68
ExampleDedupeFunction · 0.68