Clojure Passing List Variables
<p>I am trying to pass a list of variables into a function individually however when i try to pass them the function returns nill.</p>

<pre><code>(map (partial shortestPath G) (first Robot)(second Robot))
</code></pre>

<p>I tested the bits of code individually and <code>(first Robot)</code> and <code>(second Robot)</code>
don't work as i intended them too they currently return and output like so<code>[[:space]]</code>.</p>

<p>What i need them to return is just <code>:Space</code>. How would i go about doing this?</p>

<p>Thanks.</p>

<p>Edit:</p>

<pre><code>(def ItemPickUp [:Space :Mail])
(def ItemDestinations [:Storage :z2])
(def Robot [[ItemPickUp] [ItemDestinations]])
(map (partial shortestPath G) (first Robot)(second Robot))
</code></pre>