title: awk opposite of split
body: <p>what would be an opposite of <code>split()</code> in <code>awk</code>?
  Imagine I have array containig characters/integers.</p>
  
  <p>What I've tried:</p>
  
  <pre><code>color = "#FFFF00";
  printf("color original: %s\n", color);
  split(color, chars, "");
  joined = "";
  for (i=1; i &lt;= length(chars); i++) {
      joined = joined + chars[i];
  }
  printf("color joined: %s\n", joined);
  </code></pre>
  
  <p>however the output is:</p>
  
  <pre><code>color original: #FFFF00
  color joined: 0
  </code></pre>
  
  <p>that is of course incorrect.</p>
  
  <p><strong>UPDATE:</strong>
  cool, ended up with the following code (inspired by join function present in answers):</p>
  
  <pre><code>color = "#FFFF00";
  printf("color original: %s\n", color);
  split(color, chars, "");
  joined = "";
  for (i=1; i &lt;= length(chars); i++) {
      joined = joined "" chars[i];
  }
  printf("color joined: %s\n", joined);
  </code></pre>
  
  <p>the trick was not to use <code>+</code> sign when joining things back</p>