title: Swift: what is the right way to split up a [String] resulting in a [[String]] with a given subarray size?
body: <p>Starting with a large [String] and a given subarray size, what is the best way I could go about splitting up this array into smaller arrays? (The last array will be smaller than the given subarray size).</p>
  <p><strong>Concrete example:</strong></p>
  <blockquote>
  <p>Split up [&quot;1&quot;,&quot;2&quot;,&quot;3&quot;,&quot;4&quot;,&quot;5&quot;,&quot;6&quot;,&quot;7&quot;] with max split size 2</p>
  <p>The code would produce [[&quot;1&quot;,&quot;2&quot;],[&quot;3&quot;,&quot;4&quot;],[&quot;5&quot;,&quot;6&quot;],[&quot;7&quot;]]</p>
  </blockquote>
  <p>Obviously I could do this a little more manually, but I feel like in swift something like map() or reduce() may do what I want really beautifully.</p>