Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Reverse the order of two arguments of a function
ResourceFunction["FlipFunction"][f] gives a version of f in which its first two arguments are exchanged. | |
ResourceFunction["FlipFunction"][f,{i,j}] exchanges arguments at positions i and j. |
Make a flipped Power function:
In[1]:= |
Out[1]= |
Flip the order in which StringJoin joins its string arguments:
In[2]:= |
Out[2]= |
Flip the first and last arguments:
In[3]:= |
Out[3]= |
For two arguments, FlipFunction[f] is equivalent to Curry[f]:
In[4]:= |
Out[4]= |
In[5]:= |
Out[5]= |
This work is licensed under a Creative Commons Attribution 4.0 International License