🎴 Flashcard Mode

Programming Languages: Creators and Concepts

Card1 / 20
Mastered0
Review0
QuestionClick to flip

Output of: vector (1 2 2 3 4 4)

AnswerClick to flip back
A
#6(1 2 2 3 4)
💡 Explanation:

In Scheme, vectors created from lists remove duplicates from the list structure. (1 2 2 3 4 4) has 6 elements but only 5 unique values. Scheme vector notation #6(...) shows length 6 but deduplicates values, resulting in #6(1 2 2 3 4).

Change Mode