Convert an array to a mutable set in Scala?

Viewed 5314

How does one convert a Scala Array to a mutable.Set?

It's easy to convert to an immutable.Set:

Array(1, 2, 3).toSet

But I can't find an obvious way to convert to a mutable.Set.

3 Answers
Related