Keys
Keys[object]
Retrieves a list of all property keys defined in object.
- Returns a
ListofAtoms. Key order is not guaranteed (objects are hash‑map backed). - An error is raised if the argument is not an
Object.
Keys[Object[A]]; (* => {} *)
Keys[Object[A, { { #a, 10 }, { #b, #l } }]]; (* => {#a, #b} *)
Let[obj, Object[A, { { #a, 10 }, { #b, #l } }]];
Keys[Set[obj, #d, 1]]; (* => {#a, #b, #d} *)