Vector

Noun · Development

Definitions

  1. A dynamic, growable array that stores elements contiguously in memory. In Rust it's Vec<T>, in C++ std::vector. Also used in math/ML to mean an ordered list of numbers representing a point in n-dimensional space.

    In plain English: A resizable list of items stored in a row in memory, or in math, a list of numbers that represents a direction and magnitude.

    Example: "Push items onto a Vec instead of using a fixed-size array when you don't know the count upfront."

Related Terms