title: Erlang binary: Will this result in a copy?
body: <p>After reading <a href="http://www.erlang.org/doc/efficiency_guide/binaryhandling.html" rel="nofollow noreferrer">this document</a>, I'm not sure whether or not the following code will make the run-time copy binaries of A internally.</p>
  
  <pre><code>f(&lt;&lt;&gt;&gt;, A) -&gt;
      A;
  f(&lt;&lt;X:2/binary, R/binary&gt;&gt;, A) -&gt;
      I = binary_to_integer(X, 16),
      f(R, &lt;&lt;A/binary, I&gt;&gt;).
  </code></pre>
  
  <p>My guess is "no", because A isn't sent nor is it deconstructed. Am I right, or did I miss something?</p>