---
title: List Functions
description: Standard library functions for list manipulation
---

## index

`index` gets the entry from a list at the specified index.

### Inputs

| Name    | Type                                             | Description                        |
| ------- | ------------------------------------------------ | ---------------------------------- |
| `list`  | array[string] \| array[integer] \| array[buffer] | The list to retrieve an entry from |
| `index` | integer                                          | The index of the entry to retrieve |

### Output

| Name    | Type   | Description                                |
| ------- | ------ | ------------------------------------------ |
| `value` | string | The entry from list at the specified index |

```hcl
output "entry" {
    value = index(['a', 'b', 'c'], 1)
}
// > entry: b
```
