(lhs, rhs vector.Any)
| 42 | } |
| 43 | |
| 44 | func arithAddIntFlatConst(lhs, rhs vector.Any) vector.Any { |
| 45 | l := lhs.(*vector.Int) |
| 46 | rconst := vector.IntValue(rhs, 0) |
| 47 | n := lhs.Len() |
| 48 | out := vector.NewIntEmpty(lhs.Type(), n) |
| 49 | for k := range n { |
| 50 | out.Append(l.Value(k) + rconst) |
| 51 | } |
| 52 | return out |
| 53 | } |
| 54 | |
| 55 | func arithAddIntDictFlat(lhs, rhs vector.Any) vector.Any { |
| 56 | ld := lhs.(*vector.Dict) |