apply -- r7rs Definition procedure;
Procedure variants:
((procedure-0) -> (any))
procedure-0;any;((procedure &variadic any &trailing list-proper) -> (any))
procedure;any;list-proper;any;scheme:base -- (scheme base);scheme -- (scheme);(apply proc arg_1 ... args)The
applyprocedure callsprocwith the elements of the list(append (list arg_1 ...) args)as the actual arguments.(apply + (list 3 4)) ===> 7 (define compose (lambda (f g) (lambda args (f (apply g args))))) ((compose sqrt *) 12 75) ===> 30
The text herein was sourced and adapted as described in the "R7RS attribution of various text snippets" appendix.