How to mutate an array's value in “each” helper (Octane)

Thank you very much, that worked.

Template

{{#each this.args.model.list key="@index" as |name index|}}
    <div>           
         <PaperInput @value={{ name }} 
            @placeholder="Enter a Name"
            @onChange={{fn this.updateName index}}/>        
     </div>
{{/each}}

Component

 @action
 updateName( index, name ) {
    this.args.model.list.replace(index, 1, [name]);     
 }