DEV Community

Discussion on: Special kind of array in Typescript - Tuple

Collapse
 
totally_chase profile image
Phantz

A small mistake: arrays are not fixed length, not necessarily. Arrays in higher level type systems are usually dynamic in length. So the terms "array" and "vector" are often interchangeable.

But yes an array is a primitive homogenous collection. A tuple is a product type. Being a product type makes it have a constant number of different fields.