Skip to main content

Section 13.10 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 an vector. The [] operator selects elements.
index:
An integer variable or value used to indicate an element of an vector.
traversal:
Looping through the elements of an vector (or other collection).
search:
A traversal pattern used to find a particular element of an 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.