I'd like to create a function that I give a number to and it builds me a string of incrementing numbers. I know I can easily accomplish this with a for loop, but is there a cleaner way? Perhaps done in one line (even if it only accomplished the first 2 examples)? Any help is appreciated.
Example:
myFunc(3)
output: $1,$2,$3
myFunc(1)
output: $1
myFunc(0)
output: