(sctx *super.Context, elem, from, to Evaluator, base1 bool)
| 18 | } |
| 19 | |
| 20 | func 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 | |
| 30 | func (s *Slice) Eval(this super.Value) super.Value { |
| 31 | elem := s.elem.Eval(this) |