apply

Calls function and returns the values that function returns.  The arguments supply the arguments to function.  All but the last of arguments are passed to function individually.  The last of arguments must be a sequence.  This sequence is not passed as a single argument to function.  Instead, its elements are taken individually as arguments to function.

apply(max, list(3, 1, 4, 1, 5, 9))
⇒ 9
apply(min, 5, 7, list(3, 1, 4))
⇒ 1
define constant make-string =
method (#rest init-args) => string :: <string>;
apply(make, <string>, init-args)
end;
make-string(fill: 'a', size: 10)
⇒ "aaaaaaaaaa"

Exported from

Arguments

functionAn instance of <function>.
#rest argumentsOne or more instances of <object>.  The last of these must be an instance of <sequence>.

Values

#rest moreInstances of <object>.
The common-dylan module.
Whenever possible, we have tried to keep the Dylan module pristine and unextended, preferring to add our extensions to separate modules or libraries.
The class of objects that can be applied to arguments.
The class of all Dylan objects.
The class of collections whose keys are consecutive integers starting from zero.