Still trying to get into the R logic… what is the “best” way to unpack (on LHS) the results from a function returning multiple values? I can’t do this...
You could assign value of n as 0 or any other value by default and use if(args.length > 0) { to check whether any arguments is given. Below is full example with comments: public class...