The current implementation of the Vector constructor makes it so that it's only possible to create a vector with individual numbers and not an array of numbers. It would be nice if it was possible to do something like that :
I haven't used Vector and don't know the history of it, in the short term you should be able to use new Vector(...numbers) to change the array into args.
The current implementation of the
Vector
constructor makes it so that it's only possible to create a vector with individual numbers and not an array of numbers. It would be nice if it was possible to do something like that :PS: Is there a reason why every opperation like
Vector.difference()
returnsnumber[]
and not aVector
?