title: swift: how to split a string and remove first element?
body: <p>I want to create an array out of text split and then remove any items I want. The code snippet doesn't compile because a is not mutable.
  What should I do?</p>
  
  <pre><code>var a = []
  // ...
  a = split(text, { $0 == "\n"}, maxSplit: Int.max, allowEmptySlices: false)
  let sentence = a.removeAtIndex(0)
  </code></pre>