Templates

You can call an array with arguments to use it as a template.

[name, age] ("Lu", 28)

For example...

let Vector = [x, y]
let position = Vector(3, 2)

Last updated

Was this helpful?