12.3 Lists in functional programming Flashcards
1
Q
What does the append function do?
A
Add an item to the end of the list
1
Q
What is head-tail representation?
A
A method of representing a list in two parts: a head which is the first element and a tail which is itself a list of all the other elements.