Clearing a set
suggest changeYou can remove all the elements in a set using the .clear()
method:
mySet.clear();
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents
You can remove all the elements in a set using the .clear()
method:
mySet.clear();