This trait forms part of collections that can be augmented using a += operator and that can be cleared of all elements using a clear method.
| Supertypes | |
|---|---|
| Known subtypes | 64 types |
Adds a single element to this growable collection.
| Value parameters |
|
|---|---|
| Returns | the growable collection itself |
Alias for addAll
Alias for addOne
Adds all elements produced by an IterableOnce to this growable collection.
| Value parameters |
|
|---|---|
| Returns | the growable collection itself. |
| Returns | The number of elements in the collection under construction, if it can be cheaply computed, -1 otherwise. The default implementation always returns -1. |
|---|
Clears the collection's contents. After this operation, the collection is empty.
| Inherited from | Clearable |
|---|
© 2002-2022 EPFL, with contributions from Lightbend.
Licensed under the Apache License, Version 2.0.
https://scala-lang.org/api/3.2.0/scala/collection/mutable/Growable.html