(lispref.info)Function Forms


Next: Macro Forms Prev: Function Indirection Up: Forms

Evaluation of Function Forms
----------------------------

   If the first element of a list being evaluated is a Lisp function
object, byte-code object or primitive function object, then that list is
a "function call".  For example, here is a call to the function `+':

     (+ 1 x)

   When a function call is evaluated, the first step is to evaluate the
remaining elements of the list in the order they appear.  The results
are the actual argument values, one argument from each element.  Then
the function is called with this list of arguments, effectively using
the function `apply' (Note: Calling Functions.).  If the function is
written in Lisp, the arguments are used to bind the argument variables
of the function (Note: Lambda Expressions.); then the forms in the
function body are evaluated in order, and the result of the last one is
used as the value of the function call.


automatically generated by info2www