title: creating my own Concat function (SML)
body: <p>I need to create my own concat function and am confused how I get the output I need. Example:</p>
  <blockquote>
  <p>myconcat([&quot;a&quot;, &quot;b&quot;, &quot;c&quot;]) returns &quot;abc&quot;</p>
  <p>([]) returns &quot;&quot;</p>
  </blockquote>
  <p>I have this:</p>
  <pre><code>fun myconcat ([],L2) = L2
  | myconcat(x::xs, L2) = x::myconcat(xs,L2);
  </code></pre>
  <p>Which just returns a list of my two strings. How would I get them to output what i need?</p>