title: How to initialize an array of structs in Julia
body: <p>I would like to understand what shall I put instead of <code>xxxxx</code> to have a 1000 items array initialized with structs where <code>a</code> goes from <code>2000</code> to <code>3000</code> (i.e., index 1 of the array means <code>a</code> is <code>2000</code>, index 2 of the array means <code>a</code> is <code>2001</code>, and so on) and <code>b</code> is always zero.</p>
  
  <pre><code>struct MyStruct
      a
      b
  end
  
  myArray = Vector{MyStruct}( xxxxx , 1000)
  </code></pre>
  
  <p>I understand I can make a loop and individually assign the values, I am just wondering if there is something faster in Julia.</p>