title: using mapconcat to concatenate a list containing a variable
body: <p>I'm trying to join a list of strings using mapconcat, but can't figure out how to include a variable as one of the list elements. Here's what I'm going for:</p>
  
  <pre><code>(mapconcat #'identity '("" "path" "to" "someplace") "/")
  =&gt; "/path/to/someplace"
  </code></pre>
  
  <p>But when I try to include a variable:</p>
  
  <pre><code>(let ((path "someplace"))
    (mapconcat #'identity '("" "path" "to" path) "/"))
  =&gt; Wrong type argument: sequencep, path
  </code></pre>
  
  <p>This doesn't work either:</p>
  
  <pre><code>(let ((path "someplace"))
    (mapconcat #'(lambda (x) (format "%s" x)) '("" "path" "to" path) "/"))
  =&gt; "/path/to/path"
  </code></pre>
  
  <p>Can anyone point out what I'm missing here?</p>