Is there a way in Mathematica to convert prefix to infix notation (where precedence order is preserved)?
For example, how would I convert S[a, S[b, c]]
to a ~ S ~ (b ~ S ~ c)
?
I checked the cookbook and also on line for "prefix to infix transformation". but did not find this topic.