Core concept

val v = Vector(1, 2, 3)
v(1)  // 2
v :+ 4  // Vector(1, 2, 3, 4)
Advertisement

How it works

Higher constant factor than List for pure iteration. Excellent all-around.

Advertisement

Trade-offs + gotchas

Default immutable collection when unsure.