title: Elisp: How to push-back to a list
body: <p>Is there a way to push-back to a list in elisp?</p>
  
  <p>The closest thing I found was </p>
  
  <pre><code>(add-to-list 'myList myValue t) ;; t tells it to put to back of the list
  </code></pre>
  
  <p>The problem, however, is that add-to-list enforces uniqueness. The other alternative is <code>(push 'myList myVal)</code> but that can only push to the front of a list. I tried using <code>(cons myList myVal)</code> but IIRC that returns something other than a list. </p>
  
  <p>The only thing that has worked is </p>
  
  <pre><code>(setq myList (append myList (list myVal)))
  </code></pre>
  
  <p>but that syntax is hideous and feels like a lot of extra work to do something simple. </p>
  
  <p>Is there a faster way to push to the back of a list. It's clearly possible as seen in <code>(add-to-list)</code>, but is there a way to do it without enforcing uniqueness?</p>
  
  <p>In other words, a good old push-back function like with C++ and the <code>&lt;List&gt;</code> class</p>