I have some code that determines which array to pass to another variable
var x:[Float]
x = someArrayOfFloats
y = x
However currently this present the error
Cannot assign value of type '[Float]' to type '(Float, Float, Float, Float, Float, Float, Float, Float, Float, Float, Float, Float, Float, Float, Float, Float, Float, Float, Float, Float, Float, Float, Float, Float, Float, Float, Float, Float, Float, Float)'
Where float is repeated for the length of the chosen array (I presume).
I've also tried declaring x like so
var x
however this presents
Type annotation missing in pattern
The arrays that will appear in y are of variable length: How might I declare x correctly so it will compile? Must I give it the max length of all arrays? Thanks for your help.