title: how to add two mutable array? Swift
body: <p>In my app I want to implement pull down to refresh. So when scroll view scroll down its load more data. Now first time when page loads I save data in <em>videoArray</em> array, and when scroll down I got data in <em>videoArray2</em> array so how can I add value of <em>videoArray2</em> to <em>videoArray</em>? both are nsmuttablearray.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>var videoArray : NSMutableArray = NSMutableArray()
  var videoArray2 : NSMutableArray = NSMutableArray()
  </code></pre>
  
  <p>First time I stored value in this array</p>
  
  <pre><code>self.videoArray = (response.result.value)?.valueForKey("posts") as! NSMutableArray
  </code></pre>
  
  <p>Second time I stored value in this array</p>
  
  <pre><code>self.videoArray2 = (response.result.value)?.valueForKey("posts") as! NSMutableArray
  </code></pre>
  
  <p>This is how I tried to append</p>
  
  <pre><code>for enumerator in self.videoArray2
  {
      self.videoArray.addObject(enumerator)
  }
  </code></pre>
  
  <p>but its throwing error like</p>
  
  <blockquote>
    <p>*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[__NSCFArray insertObject:atIndex:]: mutating method sent to immutable object'</p>
  </blockquote>
  
  <p>So how can I solve this?</p>