title: Kotlin: Load dict (hashmap) that contains String and Tuple from file
body: <p>Hey fellow programmers,</p>
  
  <p>I recently jumped from my normal python programming to Kotlin programming in Android Studio.</p>
  
  <p>In python I have generated some dictionaries that contain strings as keys and tuples as values. These tuples theirselves then contain an int, two strings and again two ints. Imagine this simplified dict:</p>
  
  <pre><code>dict = {"key" : (1,"firstString","secondString",2,0),
          "secondKey":(0,"firstString","secondString",4,1)}
  </code></pre>
  
  <p>Now comes the scary part: I would like to import my dicts into normal variables/ vals in Kotlin.</p>
  
  <p>Therefore I put all four dicts I have in a text file in the res folder.
  The difficulty for me is both declaring the val of the appropriate data structure and then actually loading the key-value-pairs step by step into the val.
  All Kotlin tutorials seem to come to an end when diving this deep into their data structures.</p>
  
  <p>Am I right in guessing I should have a hashmap for the dicts themselves and then a(n array) list for the tuples?
  Got even stuck when trying to declare that complex structure: </p>
  
  <p><code>val importedDict: HashMap&lt;String,Array&lt;Integer,String,String,Integer&gt;&gt; = hashMapOf&lt;String,Array&lt;Int,String,String,Int&gt;()</code></p>
  
  <p>as there just seemed to be no valid data structure of multiple types in Kotlin.</p>
  
  <p>I'm thankful for any hint you can give.</p>