Inspired by the list-line abstraction by royal_orchestra I made a vanilla abstraction that changes the values of an array in a [line] fashion (by using another array to get the target values).
Get the abstraction and its help patch here https://github.com/alexandros301/array_line
check the help patch for more info.
Cheers