Lists, heads, and tails
Lists, heads, and tails
![Head-tail decomposition of the list [8, 2, 6, 1], showing repeated splits into head and tail until the empty list is reached](/_next/image?url=https%3A%2F%2Fassets.mathsgenie.co.uk%2Flesson-v2-img%2Finline%2Ffdc9ec37-9983-4367-815c-4c7317c62c13.jpeg&w=3840&q=75)
A list is an ordered collection of elements. [4,3,5][4, 3, 5][4,3,5] and [5,3,4][5, 3, 4][5,3,4] are different lists because order matters.
Step-by-step lessons covering AQA A Level Computer Science Lists in functional programming for A Level Computer Science. Each lesson works through exam-style questions.