How to pass a reference to an instance

I couldn’t find an explanation in the Kotlin reference documentation, but see this: Function parameters are "val" not "var"? - #8 by abreslav