labeled tuple element

A name written before a tuple position, such as [latitude: number, longitude: number], that documents what each slot means.

In more detail

The labels do not change the type; they show up in editor tooltips and make mixing up positions less likely. Either all elements of a tuple are labeled or none are.

Related terms

Taught in

References