The Vector Class | Scala Book | Scala Documentation
docs.scala-lang.org › overviews › scala-bookOnce again the REPL shows how this works: scala> val b = 0 +: a b: Vector [ Int] = Vector ( 0, 1, 2, 3 ) scala> val b = Vector ( -1, 0) ++: a b: Vector [ Int] = Vector ( -1, 0, 1, 2, 3 ) Because Vector is not a linked-list (like List ), you can prepend and append elements to it, and the speed of both approaches should be similar.
Scala 3
scala-lang.org › api › 3Scala 3 Scala 3 This is the documentation for the Scala standard library. Package structure The scala package contains core types like Int, Float, Array or Option which are accessible in all Scala compilation units without explicit qualification or imports. Notable packages include:
Scala - Vector - GeeksforGeeks
www.geeksforgeeks.org › scala-vectorJul 3, 2020 · Scala is an object-oriented programming language with functional and multi-paradigm support. Scala generates byte code and runs on Java Virtual Machine. Vectors in scala are immutable data structures providing random access for elements and is similar to the list. But, the list has incompetence of random access of elements.