Hello im VERY new to Zig, and im a bit confused about arrays, for example lets say we have this:
var confusedArr:[10]i32 = [_]i32{1} ** 10
should i understand this as
- in the right side we are actually creating the array we want. But in two steps, first we create an arr of size 1 then we do as the docs call it an array multiplication to get an array of size 10.
- Then in the left side "as my C brain told me" we are pointing to the array that was created with the confused var 🙂
is that correct ?
Also if you guys have any examples/tutorials related to arrays or Zig in general i would appretiate them.