toString

open override fun toString(): String

Return a string representation containing each element and its weight in order as element(weight).

Special handling: if an element is the same instance as the enclosing list, it prints (this list).

Don't rely on the result value, it might be changed in the future.