KeyDropFrom

KeyDropFrom[a,key]

changes the association a by dropping the element with the specified key.

KeyDropFrom[a,{key1,key2,}]

drops the elements with keys keyi.

Details

Examples

open allclose all

Basic Examples  (2)

Delete the entry with the specified key from an association:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=

Delete entries, given a list of keys:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=

Scope  (1)

See Also

Association  AssociateTo  KeyDrop

Introduced in 2014
(10.0)