title: Reordering Sequences in Scala
body: <p>I have a sequence with the following data order:</p>
  
  <pre><code>A, B, C, D, E, F, G, H, I, J, K, L, M, N, O
  </code></pre>
  
  <p>and I need to sort it so that it looks like this:</p>
  
  <pre><code>A, F, K, B, G, L, C, H, M, D, I, N, E, J, O
  </code></pre>
  
  <p>which is basically grouping the first sequence in to three groups, stacking them on the top of each other and reading down the first column and then the next etc to form the new sequence.</p>
  
  <pre><code>ABCDE
  
  FGHIJ
  
  KLMNO
  </code></pre>
  
  <p>I have a conceptual understanding that this might involve mapping and zipping. I could implement this in short order in imperative style, but I want it as a functional style.</p>
  
  <p>Any help/pointers gratefully received, thanks!</p>