Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Construct a function from another function that holds certain arguments
ResourceFunction["HoldArguments"][f] creates a function equivalent to f that holds all its arguments. | |
ResourceFunction["HoldArguments"][f,i] creates a function that holds the ith argument. | |
ResourceFunction["HoldArguments"][f,{i1,i2,…,in}] creates a function that holds arguments i1,i2,…,in. |
Create a new function from Print that does not evaluate its arguments:
In[1]:= |
Out[1]= |
In[2]:= |
Create a new function from ToString that holds the first argument:
In[3]:= |
Out[3]= |
In[4]:= |
Out[4]= |
Create a new function from Apply that holds the second argument:
In[5]:= |
Out[5]= |
In[6]:= |
Out[6]= |
In[7]:= |
Wolfram Language 11.3 (March 2018) or above
This work is licensed under a Creative Commons Attribution 4.0 International License