scala / 3.1 / scala / collection / mutable / clearable.html

Trait scala.collection.mutable.Clearable

trait Clearable

This trait forms part of collections that can be cleared with a clear() call.

Supertypes
Known subtypes
65 types

Abstract methods

Source
def clear(): Unit

Clears the collection's contents. After this operation, the collection is empty.

© 2002-2022 EPFL, with contributions from Lightbend.
Licensed under the Apache License, Version 2.0.
https://scala-lang.org/api/3.1.1/scala/collection/mutable/Clearable.html