code: public static <E> List<E> all(E[] array) {
          final Function<Iterator<E>, ArrayList<E>> consumer = new ConsumeIntoCollection<>(new ArrayListFactory<E>());
          return consumer.apply(new ArrayIterator<>(array));
      }
docs: Yields all element of the array in a list.
  
  @param <E> the array element type
  @param array the array that will be consumed
  @return a list filled with array values