# suppose you inherit from List to implement your vector: class MyVector is List { sub infix:<+>(MyVector @self, MyVector @other) is export { return @self »+« @other; } # adding a scalar: sub infix:<+>(MyVector @self, Num $other) is export { return @self »+ $other } }