code: public static <K, V> Map<K, V> dict(Pair<K, V>... array) {
          final Function<Iterator<Pair<K, V>>, HashMap<K, V>> consumer = new ConsumeIntoMap<>(new HashMapFactory<K, V>());
          return consumer.apply(new ArrayIterator<>(array));
      }
docs: Yields all element of the array in a map.
  
  @param <K> the map key type
  @param <V> the map value type
  @param array the array that will be consumed
  @return a map filled with array values