title: List of List in realm Swift
body: <p>I wanna to save a list of list in realm data base.
  My model is </p>
  
  <pre><code>import Foundation
  import RealmSwift
  
  class CompanyDetailRSM : Object{
      // properties and constructor
  }
  </code></pre>
  
  <p>I wanna to create a list of list of above model type in below model</p>
  
  <pre><code>import Foundation
  import RealmSwift
  
  class CompanyDetailRSMList: Object {
  
      // I wanna to declare a list in realm like
      // let list = [[CompanyDetailRSM]]() 
     var Two_D_list = List&lt;&lt;CompanyDetailRSM&gt;&gt;()// here I gets error
  
  }
  </code></pre>
  
  <p>I am new to realm, so please help me to declare a 2 dimensional list in realm. Help will be appreciated</p>