title: Map Function using list implementation haskell
body: <p>Is there a way to write an implementation of the Haskell <code>map</code> function using list implementation?</p>
  
  <p>I keep getting an error and I do not think I am on the right track. This is what I have:</p>
  
  <pre><code>map' :: (a -&gt; b) -&gt; [a] -&gt; [b]
  map' _ [] = []
  map' xs ys = [ (x, y) | x &lt;- xs | y &lt;- ys ]
  </code></pre>
  
  <p>Any help or link that will guide me in the right direction would be much appreciated.</p>