possible_values
The different values a field has across the members of a set or a list, as a list, in the order first seen (for a cloud set, as the store gives them).
Runs on: either side: the compiler places the statement that calls it where the values it uses live.
Format:
possible_values(set_or_list, key)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| set_or_list | mixed | the cloud set, or the list of records |
| key | string | the field name |
Returned Value:
| Type | Description |
|---|---|
| array | the values |
Examples
kinds = possible_values(items, "kind")