/usr/lib/s9fes/help/apply is in scheme9 2010.11.13-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 | R4RS 6.8 (apply procedure list) ==> object
(apply procedure object ... list) ==> object
The first form calls PROCEDURE with the elements of LIST as
the actual arguments. The second form is a generalization of
the first that calls PROCEDURE with the elements of the list
(append (list object ...) LIST) as the actual arguments.
(apply + (list 3 4)) ==> 7
(define (compose f g)
(lambda args (f (apply g args)))))
((compose - *) 5 7) ==> -35
|