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

Function ReversePick

vector/pick.go:65–67  ·  view source on GitHub ↗

ReversePick is like Pick but it builds the vector from the elements that are not in the index maintaining the element order of vec.

(vec Any, index []uint32)

Source from the content-addressed store, hash-verified

63// ReversePick is like Pick but it builds the vector from the elements
64// that are not in the index maintaining the element order of vec.
65func ReversePick(vec Any, index []uint32) Any {
66 return Pick(vec, bitvec.ReverseIndex(index, vec.Len()))
67}

Callers 4

combineFunction · 0.92
dequietMethod · 0.92
CallMethod · 0.92
castToStringFunction · 0.92

Calls 3

ReverseIndexFunction · 0.92
PickFunction · 0.85
LenMethod · 0.65

Tested by

no test coverage detected