Open khchen opened 2 years ago
Example:
from types import Vector class Vector2 is Vector def *=(n) self.x *= n; self.y *= n; self.z *= n return self end end v = Vector2(1, 2, 3) v *= 2 print(v)
Output:
[2, 4, 6]
Example:
Output: