30 lines
701 B
Plaintext
Raw Permalink Normal View History

---
2020-03-18 18:46:47 -04:00
page_title: values - Functions - Configuration Language
sidebar_title: values
2020-03-18 18:46:47 -04:00
description: The values function returns a list of the element values in a given map.
---
# `values` Function
`values` takes a map and returns a list containing the values of the elements
in that map.
The values are returned in lexicographical order by their corresponding _keys_,
so the values will be returned in the same order as their keys would be
2020-04-01 15:15:54 -04:00
returned from [`keys`](/docs/from-1.5/functions/collection/keys).
## Examples
```shell-session
> values({a=3, c=2, d=1})
[
3,
2,
1,
]
```
## Related Functions
2020-04-01 15:15:54 -04:00
- [`keys`](/docs/from-1.5/functions/collection/keys) returns a list of the _keys_ from a map.