Coming from the Java world, I am reassured to see in the docs that there is formatting support for numbered parameters, so that if I have the following string format:
String(format:"%1$s drew from the %3$s pile and discarded the %4$s", name, pickedUp, pile, discard)
I would expect:
Droid drew from the Draw pile and discarded the KS
(ignoring the second parameter which is the picked up card)
But what I actually get is:
Droid drew from the 5C and discarded the Draw
as if it totally ignored the numbered parameters. What am I doing wrong?