Core concept

val ab = mutable.ArrayBuffer(1, 2, 3)
ab += 4
Advertisement

How it works

Mutable. Reset visibility for parallel code.

Advertisement

Trade-offs + gotchas

Building collections. Local mutable accumulators.