code: public static boolean[] deleteRange(final boolean[] a, final int fromIndex, final int toIndex) {
          N.checkFromToIndex(fromIndex, toIndex, a.length);
  
          if (fromIndex == toIndex) {
              return a.clone();
          }
  
          final boolean[] b = new boolean[a.length - (toIndex - fromIndex)];
  
          if (fromIndex > 0) {
              N.copy(a, 0, b, 0, fromIndex);
          }
  
          if (toIndex < a.length) {
              N.copy(a, toIndex, b, fromIndex, a.length - toIndex);
          }
  
          return b;
      }
docs: Deletes the values from {@code fromIndex} to {@code toIndex}.
  
  @param a
  @param fromIndex
  @param toIndex
  @return a new array