code: protected boolean equalElements(KTypeArrayDeque<?> other) {
      int max = size();
      if (other.size() != max) {
        return false;
      }
  
      Iterator<KTypeCursor<KType>> i1 = this.iterator();
      Iterator<? extends KTypeCursor<?>> i2 = other.iterator();
  
      while (i1.hasNext() && i2.hasNext()) {
        if (!Intrinsics.equals(this, i1.next().value, i2.next().value)) {
          return false;
        }
      }
  
      return !i1.hasNext() && 
             !i2.hasNext();
    }
docs: Compare order-aligned elements against another {@link KTypeDeque}.
  #if ($TemplateOptions.KTypeGeneric)
  Equality comparison is performed with this object's {@link #equals(Object, Object)}
  method.
  #end