code: public static <S,T> List<T> collect(S[] self, @ClosureParams(FirstParam.Component.class) Closure<T> transform) {
          return collect(new ArrayIterator<S>(self), transform);
      }
docs: Iterates through this Array transforming each item into a new value using the
  <code>transform</code> closure, returning a list of transformed values.
  
  @param self      an Array
  @param transform the closure used to transform each item of the Array
  @return a List of the transformed values
  @since 2.5.0