clear

open override fun clear()

Remove all elements and weights from the list.

After this call, size == 0.