# map.keys · Rell standard library · Chromia Docs (concept)

> pure function keys(): set <K> Returns a set containing the keys of this map. Examples: [1: 'a', 2: 'b', 3: 'c'].keys() returns set([1, 2, 3]) . map<K,V>().

Source: https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/root/map/keys/

FUNCTION

# map.keys

```signature
pure function keys(): set<K>
```

Returns a set containing the keys of this map.

Examples:

* `[1: 'a', 2: 'b', 3: 'c'].keys()` returns `set([1, 2, 3])`.
* `map<K,V>().keys()` returns `set()` (where `K` and `V` are valid types).

Since 0.6.0

[View this page on docs.chromia.com](https://docs.chromia.com/pages/rell-stdlib/-rell%20-system%20-library/%5Broot%5D/map/keys.html)Generated API reference, mirrored from the live docs
