Trying to simplify a valid code used in all rows of a long table

Welcome! I’ve had the same problem.

You can do this. I’m not sure if this is EXACTLY what you want but it gives you the idea.

list = sum.map((e) => evaluateAt(this.cellNumericValue(row, e)) 
cellContent(row, 1): list[1] #etc.

to list out everything.

You still need to list out all the sinks, but it will save you a lot of typing.
Also, this is every function you can use with a list.

If you have experience in languages like Python you can think e like the control variable, and .map the loop, and list (sum) the iterable.

1 Like