Section 13.12 Vocabulary
- vector:
-
A collection of values in which all the values have the same type, and each value is identified by an index.
- element:
-
One of the values in a vector. The
.at()method is used to access elements. - index:
-
An integer variable or value used to indicate an element of a vector.
- traversal:
-
Looping through the elements of a vector (or other collection).
- search:
-
A traversal pattern used to find a particular element of a vector.
- reduce:
-
A traversal pattern that combines the elements of an vector into a single value.
- accumulator:
-
A variable used to accumulate results during a traversal.
- filter:
-
An algorithm that keeps only elements from a collection that match some criteria.
- map:
-
An algorithm that transforms each element of a collection.
You have attempted of activities on this page.
