Updating elements of a list by action

You can do it like this for example:

https://www.desmos.com/calculator/1cnyh6r502