Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Remove enclosed arguments
ResourceFunction["Excise"][…] evaluates to an empty sequence, effectively removing its arguments without evaluation. |
Excise an argument of an expression:
In[1]:= |
Out[1]= |
Excise multiple arguments:
In[2]:= |
Out[2]= |
Drop the second element of a list:
In[3]:= |
Out[3]= |
An element to be excised is not evaluated:
In[4]:= |
Out[4]= |
Excise[…] always evaluates to Sequence[]:
In[5]:= |
Out[5]= |
When wrapped in a List, Excise is similar to Nothing&:
In[6]:= |
Out[6]= |
In[7]:= |
Out[7]= |
Make some parts of a held expression "disappear" instead of evaluating when released:
In[8]:= |
Out[8]= |
In[9]:= |
Out[9]= |
Wolfram Language 11.3 (March 2018) or above
This work is licensed under a Creative Commons Attribution 4.0 International License