docs: @SuppressWarnings("unchecked")
      public static <T> T[] tail(T[] self) {
          if (self.length == 0) {
              throw new NoSuchElementException("Cannot access tail() for an empty array");
          }
          T[] result = createSimilarArray(self, self.length - 1);
          System.arraycopy(self, 1, result, 0, self.length - 1);
          return result;
      }