Mutable Function Parameters

This was discussed here: Function parameters are "val" not "var"?
The rationale for this behavior is explained here in “Parameters are Immutable” section: Kotlin M5.1 | The Kotlin Blog