Okay, where to start?
Sounds like the beginning of a joke, you have a fancy data table, a
splendid output table and a method. You use the method to calculate a
splendid number out of the data table and store it in the output table.
Similar to taking a bean out of the jar and putting it into another
nicer jar.
How do you get the input-data-table value into the method without
passing the whole table as an argument all the time?
The problem is that I iterate the same calculation over all cells, which
is not a problem for four, nine, or 25 cells, but it could be one if
this runs on 100x100 matrices.
This maybe about basic instance/symbol/variable scoping, but I’m not
sure and so far I had avoided dealing with them. So, please, someone
needs to explain me what I actually look for, is there a better way than
passing the complete table into the method?
Thanks in advance,
the Force may be with you—always.
yours James