As far as I understand, in tcl if you want to pass a named array to a function, you have to access the upper scope of the caller via the upvar command within th
upvar
There are other ways, like converting it into a list first (via array get and array set).
array get
array set