<@U5ABS5M9A> plus is defined as `operator fun &lt;...
# getting-started
a
@thatadamedwards plus is defined as
operator fun <T> Set<T>.plus(elements: Iterable<T>): Set<T>
that means it returns a new
Set
that contains"strawberry", it doesn't change the original set. you need to use
operator fun <T> MutableCollection<in T>.plusAssign(element: T)
which changes the original Set
👍 1