I'm trying to do something like below, but it doesn't work, since StringForm requires each item from parts to be given individually, and not in a list:
parts = ToString /@ {1, 2, 3};
(* this should be StringForm["`` `` ``", 1, 2, 3] and
not StringForm["`` `` ``", {1, 2, 3}] *)
StringForm["`` `` ``", parts]
I think this could be done with Flatten and Apply, but can I avoid using Apply? (looks ugly)
parts = Sequence @@ ToString /@ {1, 2, 3}– RunnyKine Oct 14 '13 at 02:49Sequenceand tried using it, but I missed the@@part – Meh Oct 14 '13 at 03:15Apply[f, expr]form. – Kuba Oct 14 '13 at 07:25StringForm["`` `` ``", ##]& @@ partswould be better IMHO. No need forSequence. -- Oh, forget it, I just saw you already did that. – Sjoerd C. de Vries Oct 14 '13 at 11:44Apply) – Kuba Oct 14 '13 at 11:47Apply– Meh Oct 14 '13 at 15:07