GNU Info

Info Node: (librep.info)Calling Functions

(librep.info)Calling Functions


Next: Mapping Functions Prev: Local Functions Up: Functions
Enter node , (file) or (file)node

Calling Functions
-----------------

   Most of the time function applications are made by the evaluator when
it finds a functional value after evaluating the first element of a
list form. However two functions are available for manually calling
functions.

 - Function: funcall function #!rest args
     Applies the argument values ARGS to the function FUNCTION, then
     returns its result.

 - Function: apply function #!rest args
     Similar to `funcall' except that the last of its arguments is a
     _list_ of arguments which are appended to the other members of
     ARGS to form the list of argument values to apply to the function
     FUNCTION.

          (apply + 1 '(2 3))
              => 6
          
          (apply + (make-list 1000000 1))
              => 1000000


automatically generated by info2www version 1.2.2.9