Discord is now Scala’s main chat platform. Please join us at https://discord.com/invite/scala
Vector
branching factor, you might try the scala/contributors room, and/or https://contributors.scala-lang.org
Vector("a","b","c","d")
, since in 2.13 these will be passed as an ArraySeq[String]
, we could just share the underlying array with the arrayseq like...object Vector {
def apply[A](elems: A*): Vector[A] =
if (elems.length <= 32 && elems.unsafeArray.isInstanceOf[Array[AnyRef]]) {
new Vector(0, elems.unsafeArray, 0)
} else { ... }
}