title: [ERLANG]: Why answer returns list in a list rather than list?
body: <p>Given the module </p>
  
  <pre><code>-module(p1). 
  
  -export([f2/2]). 
  
  f2([A, A | B]) -&gt; {A, B}; 
  f2([A, B | _]) -&gt; {A, B}; 
  f2([A]) -&gt; A; 
  f2(_) -&gt; no_match. 
  </code></pre>
  
  <p>I was asked to try the input value </p>
  
  <pre><code> p1:f2([1,1,[1,1]]). 
  </code></pre>
  
  <p>My answer would be that this input value matches the first function clause of f2, and as such gives us the result:</p>
  
  <pre><code>{1,[1,1]}
  </code></pre>
  
  <p>But according to the given answer sheet, the answer is</p>
  
  <pre><code>{1,[[1,1]]}
  </code></pre>
  
  <p>I can't quite get my head around why we get a list within a list, rather than a list in the answer. Would appreciate an explanation for this, thank you.  </p>