# How would I add together any list of arguments as a pure function?

Let's say I have a list of arguments, of any length.

How would I add them all together?

f = Evaluate[Plus @@ Array[Slot, 3]] &
f[1, 2, 3]


This would add together 3 numbers, but how would I add together any amount of numbers?

-

See SlotSequence. I would use:

f = +## &

f[1, 2, 3]

6


The long form:

InputForm[f]

Plus[##1] &


Other forms would be:

Total @ {##} &

Tr @ {##} &

Plus @@ {##} &

-
f = Plus;