title: Efficient way to define new variables by iterating a dictionary (Julia)
body: <p>Consider a dictionary <code>d</code> in Julia which contains a thousand of keys. Each key is a symbol and each value is an array. I can access to the value associated with the symbol <code>:S1</code> and assign it to the variable <code>k1</code> via</p>
  
  <blockquote>
    <p>k1 = d[:S1] </p>
  </blockquote>
  
  <p>Now assume I want to define the new variables <code>k2, k3, k4, ..., k10</code> by repeating the same procedure for the special keys <code>:S1 ... :S10</code> (not for all the keys in the dictionary). What is the most efficient way to do it? I have the impression this can be solved using metaprogramming but not sure about that.</p>