default List<E> collect(){
  try (Stream<E> s=stream()){
    return s.collect(toList());
  }
 }

default List < E > collect ( ) { try ( Stream < E > s = stream ( ) ) { return s . collect ( toList ( ) ) ; } }
collect the elements into a list . this will close the iterator .
