title: Passing a function as an parameter in scheme
body: <p>I am trying to create a function (last) that takes an function ( f ) and a List as an parameter. The list is passed to the function (odd?) and if the last element in the list is odd it returns true(#t) else it returns false (#f) .But the following code is not working , what is the correct way to declare the function as an parameter .</p>
  
  <pre><code>(define (last f L)
  (if (null? L) '() ( last f (cdr L)) ))
  </code></pre>
  
  <blockquote>
    <p>(last  odd? '( 0 5 3 8 6 7))</p>
  </blockquote>