Skip to content


Attributes of an object

attr x     attr[x]

Where x is any object, returns its attributes as a symbol vector.

The possible attributes are:

code attribute
s sorted
u unique (hash table)
p partitioned (grouped)
g true index (dynamic attribute): enables constant time update and access for real-time tables

A null symbol result ` means no attributes are set on x.

q)attr 1 3 4
q)attr asc 1 3 4
q)attr ({x+y})

Set Attribute
Q for Mortals §8.8 Attributes