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.
Keys[expr,h]
gives a list of keys in expr, wrapping each of them with head h before evaluation.
Examples
open allclose allBasic Examples (4)
Properties & Relations (5)
Wolfram Research (2014), Keys, Wolfram Language function, https://reference.wolfram.com/language/ref/Keys.html (updated 2025).
Text
Wolfram Research (2014), Keys, Wolfram Language function, https://reference.wolfram.com/language/ref/Keys.html (updated 2025).
CMS
Wolfram Language. 2014. "Keys." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2025. https://reference.wolfram.com/language/ref/Keys.html.
APA
Wolfram Language. (2014). Keys. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Keys.html