(lhs, rhs vector.Any)
| 109 | } |
| 110 | |
| 111 | func arithAddIntViewFlat(lhs, rhs vector.Any) vector.Any { |
| 112 | ld := lhs.(*vector.View) |
| 113 | l := ld.Any.(*vector.Int) |
| 114 | lx := ld.Index |
| 115 | r := rhs.(*vector.Int) |
| 116 | n := lhs.Len() |
| 117 | out := vector.NewIntEmpty(lhs.Type(), n) |
| 118 | for k := range n { |
| 119 | out.Append(l.Value(uint32(lx[k])) + r.Value(k)) |
| 120 | } |
| 121 | return out |
| 122 | } |
| 123 | |
| 124 | func arithAddIntViewDict(lhs, rhs vector.Any) vector.Any { |
| 125 | ld := lhs.(*vector.View) |
nothing calls this directly
no test coverage detected