MCPcopy Create free account
hub / github.com/brimdata/super / ReverseIndex

Function ReverseIndex

vector/bitvec/bits.go:165–175  ·  view source on GitHub ↗
(index []uint32, n uint32)

Source from the content-addressed store, hash-verified

163}
164
165func ReverseIndex(index []uint32, n uint32) []uint32 {
166 var reverse []uint32
167 for i := range n {
168 if len(index) > 0 && index[0] == i {
169 index = index[1:]
170 continue
171 }
172 reverse = append(reverse, i)
173 }
174 return reverse
175}

Callers 2

ReversePickFunction · 0.92
ReversePickMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected