Given a variable number of arguments in a Rust macro (i.e., $($varargs:pat),*), I want to print them nicely delimited.
For example, given a macro something! that takes a variable number of arguments, e.g. something!(a, b, c), I want to print them in a string: "a, b, c".
I could not find any resources online for this, so putting it out into the world in case this helps someone else. Other answers appreciated.
Joining Vector Solution
Mutating String Solution
Recursive Solution