Infix
Infix[f[e1,e2,…]]
prints with f[e1,e2,…] given in default infix form: e1~f~e2~f~e3….
Infix[expr,h]
prints with arguments separated by h: e1 h e2 h e3….
Details
- Infix[expr,h,precedence,grouping] can be used to specify how the output form should be parenthesized.
- Precedence levels are specified by integers. In OutputForm, some precedence levels are:
-
x.y.z 490 x y z 400 x+y+z 310 x==y 290 x=y 40 - Possible grouping (associativity) specifications are:
-
NonAssociative not associative—always parenthesized None always associative—never parenthesized Left left associative (e.g. (a/b)/c) Right right associative (e.g. a^(b^c)) - The special input form e1~f~e2 is directly interpreted as f[e1,e2] and does not involve Infix. »
Examples
open allclose allPossible Issues (1)
The output from Infix contains invisible tagging that preserves its meaning:
Copying the output and using it in a input cell produces the same result:
Typing in a visually identical result from scratch will produce a different result:
Text
Wolfram Research (1988), Infix, Wolfram Language function, https://reference.wolfram.com/language/ref/Infix.html.
CMS
Wolfram Language. 1988. "Infix." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/Infix.html.
APA
Wolfram Language. (1988). Infix. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Infix.html