Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

enumerated

std › enumerated

Enumerated<T>: a value paired with its position.

Types

Enumerated

struct Enumerated<T>

A value and its index, as enumerate in std.array produces.

FieldTypeDescription
indexintThe position, counting from 0.
valueTThe value at that position.