(lhs, rhs vector.Any)
| 81 | } |
| 82 | |
| 83 | func arithAddIntDictView(lhs, rhs vector.Any) vector.Any { |
| 84 | ld := lhs.(*vector.Dict) |
| 85 | l := ld.Any.(*vector.Int) |
| 86 | lx := ld.Index |
| 87 | rd := rhs.(*vector.View) |
| 88 | r := rd.Any.(*vector.Int) |
| 89 | rx := rd.Index |
| 90 | n := lhs.Len() |
| 91 | out := vector.NewIntEmpty(lhs.Type(), n) |
| 92 | for k := range n { |
| 93 | out.Append(l.Value(uint32(lx[k])) + r.Value(uint32(rx[k]))) |
| 94 | } |
| 95 | return out |
| 96 | } |
| 97 | |
| 98 | func arithAddIntDictConst(lhs, rhs vector.Any) vector.Any { |
| 99 | ld := lhs.(*vector.Dict) |
nothing calls this directly
no test coverage detected