Skip to content

Latest commit

 

History

History
46 lines (35 loc) · 877 Bytes

enumerate.md

File metadata and controls

46 lines (35 loc) · 877 Bytes
title enumerate
categories filters
version 0.116.0
filters Enumerate the elements in a stream.
usage Enumerate the elements in a stream.
editLink false
contributors false

enumerate for filters

Enumerate the elements in a stream.

Command Type

built-in

Signature

> enumerate {flags}

Input/output types:

input output
any table

Examples

Add an index to each element of a list.

> [a, b, c] | enumerate
╭───┬──────╮
│ # │ item │
├───┼──────┤
│ 0 │ a    │
│ 1 │ b    │
│ 2 │ c    │
╰───┴──────╯