I have a table, which is :
t:([alpha:`a`b`c`d`e`f];beta:10 20 30 40 50 60)
I also have two variable:
chgkey:`b`c
chgvalue:2000 -1000
I want to do something like:
t:update beta:2000 from t where alpha=`b;
t:update beta:-1000 from t where alpha=`c;
My question is how to combine these two lines of code. Because I am working on a table which is far bigger than this simple example and it will take me a lot of rows of codes to do all the updates, which is too long.
It would be nice something like
t[chgkey]`beta:chgvalue;