title: Putting a list in a parameter in scheme
body: <p>So I am new to using Scheme/Guile and have an assignment where I must take 2 inputs; a simple variable and a list.</p>
  
  <p>I then add the variable to each number in the list and print it out. I have got it to load but when I enter this:</p>
  
  <pre class="lang-lisp prettyprint-override"><code>(add 1 (1 2 3))
  </code></pre>
  
  <p>I get this error:</p>
  
  <pre><code>Backtrace:
    39: 0* [add 1 ...
    39: 1*  [1 2 3]
  
  standard inout:39:8: In expression (1 2 3):
  standard input:39:8:wrong type to appy: 1
  ABORT: (misc-error)
  </code></pre>
  
  <p>Here is the code that I currently have.  </p>
  
  <pre><code>(define a (list a))
  (define (add y a)
      (define x 0)
      (while (&lt; x (length a))
          (display (+ y (car a)))
          (newline)
          (set! a (cdr a))
          (set! x (+ x 1))
      )
  )
  </code></pre>
  
  <p>My question is:<br>
  How do I get the list to work in the parameter? I have looked around online but havent found much to fix this problem.
  Many thanks ahead of time for any help you can give me.</p>