code: public static <T> List<List<T>> collate(Iterable<T> self, int size) {
          return collate(self, size, true);
      }
docs: Collates this iterable into sub-lists of length <code>size</code>.
  Example:
  <pre class="groovyTestCase">def list = [ 1, 2, 3, 4, 5, 6, 7 ]
  def coll = list.collate( 3 )
  assert coll == [ [ 1, 2, 3 ], [ 4, 5, 6 ], [ 7 ] ]</pre>
  
  @param self          an Iterable
  @param size          the length of each sub-list in the returned list
  @return a List containing the data collated into sub-lists
  @since 2.4.0