---
title: enumerate
categories: |
filters
version: 0.104.0
filters: |
Enumerate the elements in a stream.
usage: |
Enumerate the elements in a stream.
editLink: false
contributors: false
---
<!-- This file is automatically generated. Please edit the command in https://github.com/nushell/nushell instead. -->
# `enumerate` for [filters](/commands/categories/filters.md)
<div class='command-title'>Enumerate the elements in a stream.</div>
## Signature
```> enumerate {flags} ```
## Input/output types:
| input | output |
| ----- | ------ |
| any | table |
## Examples
Add an index to each element of a list
```nu
> [a, b, c] | enumerate
╭───┬──────╮
│ # │ item │
├───┼──────┤
│ 0 │ a │
│ 1 │ b │
│ 2 │ c │
╰───┴──────╯
```