MCPcopy
hub / github.com/cayleygraph/cayley / uniqueNext

Struct uniqueNext

graph/iterator/unique.go:90–95  ·  view source on GitHub ↗

Unique iterator removes duplicate values from it's subiterator.

Source from the content-addressed store, hash-verified

88
89// Unique iterator removes duplicate values from it's subiterator.
90type uniqueNext struct {
91 subIt graph.Scanner
92 result graph.Ref
93 err error
94 seen map[interface{}]bool
95}
96
97func newUniqueNext(subIt graph.Scanner) *uniqueNext {
98 return &uniqueNext{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected