Keys

Keys[key1val1,key2val2,]

gives a list of the keys keyi in an association.

Keys[{key1val1,key2val2,}]

gives a list of the keyi in a list of rules.

Details

Examples

open allclose all

Basic Examples  (3)

Get the keys in an association:

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

Get keys from a list of rules:

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

Keys automatically threads over lists:

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

Properties & Relations  (3)

See Also

Values  Normal  Association  Rule  KeySort  KeyMap  KeyValueMap

Introduced in 2014
(10.0)