This is the ThingsDB documentation for version v0, click here for the latest version!
Returns a list with all the property values of a thing.
The same could be returned using map so the following statement is true
:
(.values() == .map(|_, v| v))
Although the values()
and map()
in the example above will return a list with the same order,
the order of values in the list is not guaranteed and may be different each time you run the query.
This function does not generate an event.
thing.values()
None
Returns a list with property values.
This code shows how to use
values()
:
{a: 1, b: 2, c: 3}.values();
Return value in JSON format (Warning: the order is NOT guaranteed)
[
1,
2,
3
]