C arrays are imported into Swift as tuples. This commonly happens when working with Metal in Swift, where structs are defined in a header so that they can be shared between Metal shaders and Swift.
This all becomes very messy when your struct has a large array, i.e.:
typedef struct {
float weights[51];
} Uniforms;
In Swift, Uniforms.weights is a tuple (Float, Float, Float, Float, Float, ....you get the idea).
Now, the issue arrises when trying to populate this tuple from a Swift array. Is there a way to populate a tuple with the contents of an array, other than the manual method, i.e.:
weightsTuple = (array[0], array[1], array[2], array[3], ...etc.)