title: How do I add several columns at once in kdb?
body: <p>Somehow, I can only find examples that show how to add one column.</p>
  
  <p>So I have written this code, which works, but I know there is a much better way to do this:
  table t already exists with columns filled with data, and I need to add new columns that are initially null.</p>
  
  <pre><code> t: update column1:` from t;
   t: update column2:` from t;
   t: update column3:` from t;
   t: update column4:` from t;
  </code></pre>
  
  <p>I tried making it a function:</p>
  
  <pre><code> colNames:`column1`column2`column3`column4;
   t:{update x:` from t}each colNamesList;
  </code></pre>
  
  <p>But this only added one column and called it x.</p>
  
  <p>Any suggestions to improve this code will be greatly appreciated.  I have to add a lot more than just 4 columns and my code is very long because of this.  Thank you!</p>