Basic Examples 
(5)
 

Index a list of associations by a given key:
In[626]:=
[◼]
KeyIndex
[{<|a1,b2|>,<|a3,b4|>},a]
Out[626]=
1b2,3b4
———
Index lists of rules:
In[1]:=
[◼]
KeyIndex
[{{a1,b2},{a3,b4}},a]
Out[1]=
1b2,3b4
———
Use a combination of lists and associations:
In[1]:=
[◼]
KeyIndex
[{<|a1,b2|>,{a3,b4}},a]
Out[1]=
1b2,3b4
———
Use the operator form:
In[627]:=
[◼]
KeyIndex
[a]
Out[627]=
[◼]
KeyIndex
[a]
In[628]:=
%[{<|a1,b2|>,<|a3,b4|>}]
Out[628]=
1b2,3b4
———
Index a
Dataset
by a given key:
In[1]:=
data=RandomSample[ResourceData["Meteorite Landings"],5]
Out[1]=
In[2]:=
[◼]
KeyIndex
[data,"ID"]
Out[2]=

Scope 
(2)
 


Options 
(7)
 


Applications 
(2)
 


Properties and Relations 
(2)
 


Possible Issues 
(1)
 
