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

Method arrayOrSet

runtime/sam/expr/function/unblend.go:87–93  ·  view source on GitHub ↗
(typ super.Type, bytes scode.Bytes)

Source from the content-addressed store, hash-verified

85}
86
87func (u *unblend) arrayOrSet(typ super.Type, bytes scode.Bytes) []super.Value {
88 var elems []super.Value
89 for it := bytes.Iter(); !it.Done(); {
90 elems = append(elems, u.eval(super.NewValue(typ, it.Next())))
91 }
92 return elems
93}
94
95func (u *unblend) unify(elems []super.Value) (super.Type, scode.Bytes) {
96 seen := make(map[super.Type]struct{})

Callers 1

evalMethod · 0.95

Calls 5

evalMethod · 0.95
NewValueFunction · 0.92
IterMethod · 0.80
DoneMethod · 0.45
NextMethod · 0.45

Tested by

no test coverage detected