## `fp::apply` -- apply function to arguments

#### Introduction

`fp::apply``(f,a)` returns `f(a)`.

#### Call(s)

`fp::apply(f <, e...>)`

#### Parameters

`f` | - | function
`e` | - | object used as argument

#### Returns

The result of the function call `f(e,...)`.

#### Side Effects

Same side effects as when calling `f(e,...)` directly.

#### Details

- `fp::apply` applies the function `f` to the arguments given by `e`....

#### Example 1

Apply the function `f` to `x` and `y`:

    >> fp::apply(f, x, y)

                                      f(x, y)

#### Example 2

Apply the functions of the first list to the arguments given by the second list:

    >> zip([sin, cos], [x, y], fp::apply)

                                 [sin(x), cos(y)]

#### Changes

- no changes

Do you have questions or comments?
Copyright © SciFace Software GmbH & Co. KG 2000