4.12.3.1 List processing Flashcards
1
Q
What is the head of a list?
A
The first element of the list
2
Q
What is the tail of a list?
A
Every element of the list except for the first
Computing Theory > 4.12.3.1 List processing > Flashcards
What is the head of a list?
The first element of the list
What is the tail of a list?
Every element of the list except for the first