code: public KType pop() {
      assert elementsCount > 0;
  
      final KType v = Intrinsics.<KType> cast(buffer[--elementsCount]);
      /* #if ($TemplateOptions.KTypeGeneric) */
      buffer[elementsCount] = null;
      /* #end */
      return v;
    }
docs: Remove the top element from the stack and return it.