New answers tagged custom-notation
3
That's how I finally defined haskell operators:
rapply[x_] := x
rapply[x_, y__] := x[rapply[y]]
InfixNotation[ParsedBoxWrapper["|"], rapply]
lapply[x_] := x
lapply[x__, y_] := lapply[x][y]
InfixNotation[ParsedBoxWrapper["\[SmallCircle]"], lapply]
InfixNotation[ParsedBoxWrapper["\[CenterDot]"], Composition]
Now $\circ$, $\dot{}{}$ and | act exactly like ...
10
Currying
I don't know if it is possible to make all functions work in the Currying form (h[x1][x2][..]) but it is at least possible to extend Hold behavior to all arguments which natively that pattern will not have. I will copy my favorite method which was posted here by Grisha Kirilin:
SetAttributes[f, HoldAllComplete]
f[a_, b_, c_] := Hold[a, b, c]
...
Top 50 recent answers are included

