title: Higher order programming with Lisp: Passing a function to mapcar?
body: <p>I'm just learning ANSI Common Lisp (using clisp on a Win32 machine) and I was wondering if mapcar could use a function passed in as a formal argument? Please see the following:</p>
  
  <pre><code>(defun foo (fn seq) 
      (mapcar #'fn seq))
  </code></pre>
  
  <p>This would, in my opinion, provide a greater level of flexibility than:</p>
  
  <pre><code>(defun mult (i)
      (* i 2))
  
  (defun foo ()
      (mapcar #'mult '(1 2 3)))
  </code></pre>