---
description: Retrieve a collection's keys as an array
---

# keys

```erlang
keys :: Collection collection => Array values
```

## description

Returns the keys of a `Collection` as an `Array`.

{% hint style="info" %}
For `Sets`, the keys are equal to the values.
{% endhint %}

