MCPcopy Create free account
hub / github.com/araddon/qlbridge / NewSliceValuesNative

Function NewSliceValuesNative

value/value.go:589–595  ·  view source on GitHub ↗
(iv []interface{})

Source from the content-addressed store, hash-verified

587 return SliceValue{v: v}
588}
589func NewSliceValuesNative(iv []interface{}) SliceValue {
590 vs := make([]Value, len(iv))
591 for i, v := range iv {
592 vs[i] = NewValue(v)
593 }
594 return SliceValue{v: vs}
595}
596
597func (m SliceValue) Nil() bool { return len(m.v) == 0 }
598func (m SliceValue) Err() bool { return false }

Callers 4

ValidateMethod · 0.92
builtins_test.goFile · 0.92
value_test.goFile · 0.85
TestSliceValuesFunction · 0.85

Calls 1

NewValueFunction · 0.85

Tested by 2

ValidateMethod · 0.74
TestSliceValuesFunction · 0.68