code: public static <T> EntryStream<T, T> ofPairs(T[] array) {
          return ofPairs(Arrays.asList(array));
      }
docs: Returns a sequential ordered {@code EntryStream} containing the possible
  pairs of elements taken from the provided array.
  
  <p>
  Both keys and values are taken from the input array. The index of the key
  is always strictly less than the index of the value. The pairs in the
  stream are lexicographically ordered. For example, for the array of three
  elements the stream of three elements is created:
  {@code Map.Entry(array[0], array[1])},
  {@code Map.Entry(array[0], array[2])} and
  {@code Map.Entry(array[1], array[2])}. The number of elements in the
  resulting stream is {@code array.length*(array.length+1L)/2}..
  
  @param <T> type of the array elements
  @param array a array to take the elements from
  @return a new {@code EntryStream}
  @see StreamEx#ofPairs(Object[], BiFunction)
  @since 0.3.6