KeySelect

KeySelect[assoc,crit]
selects elements in the association assoc for which crit applied to their keys is True.

KeySelect[crit]
represents an operator form of KeySelect that can be applied to an expression.

DetailsDetails

ExamplesExamplesopen allclose all

Basic Examples  (3)Basic Examples  (3)

Select entries with odd keys:

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

Select entries from an association, using another association as a criterion:

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

Use the operator form of KeySelect:

In[1]:=
Click for copyable input
Out[1]=
Introduced in 2014
(10.0)