apply

(apply proc arg1 ... list-of-args)


Description:

Proc must be a procedure and list-of-args must be a list.

  Calls proc with the elements of the list (append (list arg1

  ...) args) as the actual arguments.


Arguments:

       arg1 ... -- any scheme objects to pass as arguments

           args -- a list of scheme objects to pass as arguments

           proc -- the procedure to call


Returns: boolean


Examples:

(apply + (list 3 4)) => 7



Back to index