Name

apply

Usage

builtin-function

Syntax

(apply func args)
(apply func)

Description

The first form calls func with an argument list created by the function list*. The second form returns a function with one argument of type sequence that applies the argument to func.

user 1 > (apply + 1 2 '(3 4))
it: 10
user 2 > (apply + '(1 2 3 4))
it: 10
user 3 > (let f (apply +))
it: #<Kiezel.ApplyWrapper>
user 4 > (f '(1 2 3 4))
it: 10