16

3

Not sure if this has been asked, but I have a fairly simple operation that I don't know the syntax for. Say I have an array with some values, and a function f that accepts an arbitrary number of arguments. The following:

```
array = {e,f};
f[a, b, c, d, array];
```

...is functionally equivalent to:

```
f[a, b, c, d, {e, f}];
```

OK, will Sequence help? Nope, this does the same thing:

```
f[a, b, c, d, Sequence@array];
```

Essentially, I want to include e and f into the list of arguments, i.e. I want to know the syntax for telling Mathematica I want it to evaluate this:

```
f[a, b, c, d, e, f];
```

How do I go about doing this?

What about renaming the question to something like "Splicing a list of arguments into a function with Sequence" or similar? – Yves Klett – 2013-02-08T14:01:39.010

Sure, sounds better to me... – Guillochon – 2013-02-08T19:43:16.000