attr

Attributes of an object

Syntax: attr x, attr[x]

Returns the attributes of x. It can be applied to all data types. 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

The result is a symbol atom and is one of `s`u`p`g` with ` meaning no attributes are set on the argument.

q)attr 1 3 4
`
q)attr asc 1 3 4
`s

Set Attribute
Basics: Metadata