4 ms·
> an array of structures, the compiler/language should be able to turn that into a structure of arrays class Point: i: int def get_x(): retu
by jamann 3y ago
> an array of structures, the compiler/language should be able to turn that into a structure of arrays
class Point:
i: int
def get_x():
return x_array[i]
# shift every point
x_array += 1