title: split array of objects into groups of 4 - ios
body: <p>How do you split an array of objects into an array of array of objects?</p>
  
  <p>say I want to split into groups of 4, how do I do that?</p>
  
  <p>[a,b,c,d,e,f,g,h] =>
  [a,b] [c,d] [e,f] [g,h]</p>
  
  <p>or maybe if I specify that I want to split into groups of 3, then the result should be
  [a,b,c], [d,e,f], [g,h]</p>
  
  <p>it should also work if h doesn't exist.</p>