code: public static <T> T[] transform(T[] array, Transformer<T> transformer) {
  
      Assert.notNull(array, "Array is required");
      Assert.notNull(transformer, "Transformer is required");
  
      for (int index = 0; index < array.length; index++) {
        array[index] = transformer.transform(array[index]);
      }
  
      return array;
    }
docs: Transforms the elements in the array using the provided {@link Transformer}.
  
  @param <T> Class type of the elements in the array.
  @param array array of elements to transform.
  @param transformer {@link Transformer} used to transform the array elements.
  @return the array of elements transformed.
  @throws IllegalArgumentException if either the array or {@link Transformer} are null.
  @see org.cp.elements.lang.Transformer