Some functional programming languages provide the ability to call your functions inline 'between' arguments. I do not know the correct terminology for this functionality (if I did, I could do a better search :D), but hopefully the following is clear..
Let's say I define an 'add' function:
const add = (a,b) => a+b;
For reasons that are outside the scope of this question (I'm not here for a debate on coding style, there is a legitimate use-case here, I promise), I would like to be able to call this function like so:
const result = 1 add 3;
For my obviously more complicated situation than the above, this syntactic sugar would be very tasty. Is it possible in typescript? And what is the correct terminology/name for the behaviour above allowed in some languages?