title: How to declare a dictionary variable inside a swift class?
body: <p>I would like to define class with a Array and Dictionary as its class variables as follows</p>
  
  <pre><code>class MyClass
  {
   let myArray : Array = ["one","two"];
   var myDictionary : Dictionary ;
  
   func myFunc 
   {
     myDictionary = ["key" : myArray];
   }
  }
  </code></pre>
  
  <p>But this shows compilation error.</p>
  
  <p>Any help please ?</p>