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

Function NewSlice

runtime/sam/expr/slice.go:20–28  ·  view source on GitHub ↗
(sctx *super.Context, elem, from, to Evaluator, base1 bool)

Source from the content-addressed store, hash-verified

18}
19
20func NewSlice(sctx *super.Context, elem, from, to Evaluator, base1 bool) *Slice {
21 return &Slice{
22 sctx: sctx,
23 elem: elem,
24 from: from,
25 to: to,
26 base1: base1,
27 }
28}
29
30func (s *Slice) Eval(this super.Value) super.Value {
31 elem := s.elem.Eval(this)

Callers 1

compileSliceExprMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected