On Saturday, 6 July 2019 at 11:48:42 UTC, berni wrote:
On Thursday, 4 July 2019 at 17:00:33 UTC, Q. Schroll wrote:
The prime example is printing the comma when printing a list: There is one between any two elements, but neither is one at front or behind the last one.

If it is just for printing commas in between, you can use range.join(", ")


.map!(e=>e.text).join( ", "); // map for non strings
.format!"%(%s, %)"; // for anything

Reply via email to