spread¶core.lambda.spread(f, xs)¶| Returns: | The result of applying the function f to arguments xs. |
|---|
(α₁ → α₂ → ... → αₙ → β) → (#[α₁, α₂, ..., αₙ] → β)
Applies a list of arguments to a curried function.
var add = curry(2, function(a, b){ return a + b })
spread(add)([3, 2]) // => add(3)(2) => 5