Lesson 8
Making Objects the Main Star!
Chapter 2: Set
Set methods
set
s are mutable. This means you can modify the values of the set.
The official documentation lists the following mutator methods, for example add()
, update()
, discard()
, remove()
, pop()
, clear()
. There are a few others, but I will let you explore the documentation yourself.
Let’s quickly explore the methods with a quiz!
❮
❯