Try foo([a]):= a[1]+a[2]; foo(3,4); -> 7 foo(3,4,5); -> still 7. you get the idea? There are other issues about what to do if you don't want to evaluate the arguments, as might be the case for plotting. RJF