(lhs, rhs vector.Any)
| 96 | } |
| 97 | |
| 98 | func arithAddIntDictConst(lhs, rhs vector.Any) vector.Any { |
| 99 | ld := lhs.(*vector.Dict) |
| 100 | l := ld.Any.(*vector.Int) |
| 101 | lx := ld.Index |
| 102 | rconst := vector.IntValue(rhs, 0) |
| 103 | n := lhs.Len() |
| 104 | out := vector.NewIntEmpty(lhs.Type(), n) |
| 105 | for k := range n { |
| 106 | out.Append(l.Value(uint32(lx[k])) + rconst) |
| 107 | } |
| 108 | return out |
| 109 | } |
| 110 | |
| 111 | func arithAddIntViewFlat(lhs, rhs vector.Any) vector.Any { |
| 112 | ld := lhs.(*vector.View) |