The Cell expression for:
<>
is
Cell[BoxData["<>"], "Input"]
However similar expressions are parsed into RowBox(s), for example:
><
Cell[BoxData[RowBox[{">", "<"}]], "Input"]
How do I get expressions like >< to act like <> does?
Mathematica Stack Exchange is a question and answer site for users of Wolfram Mathematica. It only takes a minute to sign up.
Sign up to join this communityThe Cell expression for:
<>
is
Cell[BoxData["<>"], "Input"]
However similar expressions are parsed into RowBox(s), for example:
><
Cell[BoxData[RowBox[{">", "<"}]], "Input"]
How do I get expressions like >< to act like <> does?
Michael Pilat has stated that you cannot create your own compound operators.
You may find some utility in these posts:
Prefix operator with low precedence
How can one define an infix operator with an arbitrary unicode character?
Are you interested only in the case of "less than" and "greater than" symbols? Might other variations serve the purpose?
The following parentheses are represented like "<>" (they are represented without using RowBox
), regardless of the order of the characters:
InterpretationBox
andMakeBoxes
$\endgroup$