code: public static boolean[] distinct(final boolean[] a, final int fromIndex, final int toIndex) {
          return N.removeDuplicates(a, fromIndex, toIndex, false);
      }
docs: Mostly it's designed for one-step operation to complete the operation in one step.
  <code>java.util.stream.Stream</code> is preferred for multiple phases operation.
  
  @param a
  @param fromIndex
  @param toIndex
  @return