I know that I can define a function of a List and get the nth argument like:
f[x_List]:=x[[1]]+x[[2]]
What if the argument of f
is not a list? I.e. how to define an equivalent function for
f[x__Integer]:=?
This is probably extremely basic, but I couldn't figure it out from the Slot
documentation.