code: public static boolean[] delete(final boolean[] a, final int index) {
          final boolean[] result = new boolean[a.length - 1];
  
          if (index > 0) {
              copy(a, 0, result, 0, index);
          }
  
          if (index + 1 < a.length) {
              copy(a, index + 1, result, index, a.length - index - 1);
          }
  
          return result;
      }
docs: <p>
  Removes the element at the specified position from the specified array.
  All subsequent elements are shifted to the left (subtracts one from their
  indices).
  </p>
  
  <p>
  This method returns a new array with the same elements of the input array
  except the element on the specified position. The component type of the
  returned array is always the same as that of the input array.
  </p>
  
  
  @param <T>
  the component type of the array
  @param a
  @param index
  the position of the element to be removed
  @return A new array containing the existing elements except the element
  at the specified position.