I don't know mathematica but it looks like ... does the same thing. I use it often when I have a function that has a lot of arguments.
function foo1(x,y,z,w)
sin(x+y+z+w)
end
fin = [
3,
4,
5,
6
]
foo1(fin...)
It also works for keyword args
function foo2(;x = 1, y = 2, z = 3, w = 4)
sin(x+y+z+w)
end
fin = [
:x => 3,
:y => 4,
:w => 5,
:z =>6
]
foo2(;fin...)
Cool, right?
