code: public static <T> Collection<T> findAll(T[] self, @ClosureParams(FirstParam.Component.class) Closure condition) {
          Collection<T> answer = new ArrayList<T>();
          return findAll(condition, answer, new ArrayIterator<T>(self));
      }
docs: Finds all elements of the array matching the given Closure condition.
  <pre class="groovyTestCase">
  def items = [1,2,3,4] as Integer[]
  assert [2,4] == items.findAll { it % 2 == 0 }
  </pre>
  
  @param self      an array
  @param condition a closure condition
  @return a list of matching values
  @since 2.0