I would love some advice for what symbol to use and best implement it?
<< Notation`;
Notation[ParsedBoxWrapper[
RowBox[{"x_", " ", "jn", " ", "y_", " "}]] \[DoubleLongLeftRightArrow] ParsedBoxWrapper[
RowBox[{" ", RowBox[{"Join", "[", RowBox[{"x_", ",", "y_"}], "]"}]}]]]
Answer
~Join~
can already serve as an infix operator. If you want something more concise I recommend choosing one of the existing operators without a built-in meaning. Simply:
UnionPlus = Join;
{1, 2}⊎{3, 4, 5}
{1, 2, 3, 4, 5}
(Use InputAliases
for fast entry.)
If there are none there that you like you might use Rojo's method from Is it possible to define custom compound assignment operators like ⊕= similar to built-ins +=, *= etc?
Comments
Post a Comment