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