import scala.collection.mutable.ArrayBuffer
// the parameter shares the caller's buffer
def addOne(buf: ArrayBuffer[Int]): Unit =
buf += 1
@main def main(): Unit =
val data = ArrayBuffer(10, 20)
addOne(data)
println(data)the callee mutates the caller's data