I wanna define function which has flexible number of argument.
2 views (last 30 days)
Dong-Gyu Jang on 26 Dec 2014
Hello and happy new year!
Now I'm considering to define function which has flexible arguments.
For example, let's have function F which full argument number is 3 such as F(a,b,c)
If b is 0, user don't need to assign c thus F(a,b) is enough. Otherwise full argument assignment is required.
Can I make this kind of flexible function?