Several functions work with symbols in MMA:
Take for example Part
:
l1=l2=Range[4];
l1[[3]]
(*3*)
l2[[4]]
(*4*)
I want to make my own function work in the same way.
I can do some thing like this:
p[l_,x_]:=l[[x]]
p[l1,3]
(*3*)
p[l2,4]
(*4*)
Now I want to use a symbol for example assign [[[]]]]
or [*@]
(or any other symbol) to my p
function so that I can do something like this:
l1[[[3]]]
(*3*)
l2[[[4]]]
(*4*)
or
l1[*@3]
(*3*)
l2[*@4]
(*4*)
CirclePlus
. $\endgroup$