scala / 3.1 / scala / collection / mutable / growable$.html

Object scala.collection.mutable.Growable

object Growable

Supertypes
Self type

Concrete methods

Source
def from[A](empty: Growable[A], it: IterableOnce[A]): empty.type

Fills a Growable instance with the elements of a given iterable

Type parameters
A

Element type

Value parameters
empty

Instance to fill

it

Elements to add

Returns

The filled instance

© 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/Growable$.html