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

Function elements

runtime/vam/expr/mapcall.go:62–71  ·  view source on GitHub ↗
(vec vector.Any)

Source from the content-addressed store, hash-verified

60}
61
62func elements(vec vector.Any) (vector.Any, []uint32, bool) {
63 switch vec := vec.(type) {
64 case *vector.Array:
65 return vec.Values, vec.Offsets, true
66 case *vector.Set:
67 return vec.Values, vec.Offsets, true
68 default:
69 return nil, nil, false
70 }
71}

Callers 1

evalMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected