code: public static <T, K, V> MutableMap<K, V> toMap(
              T[] objectArray,
              Function<? super T, ? extends K> keyFunction,
              Function<? super T, ? extends V> valueFunction)
      {
          MutableMap<K, V> map = UnifiedMap.newMap();
          Procedure<T> procedure = new MapCollectProcedure<T, K, V>(map, keyFunction, valueFunction);
          ArrayIterate.forEach(objectArray, procedure);
          return map;
      }
docs: Iterate over the specified array applying the specified Functions to each element to calculate a key
  and value, and return the results as a Map.