Writing Functional Programs (AQA A-Level Computer Science): Flashcards

📚Flashcards
Writing Functional Programs
Sign up to keep revising.Create a free account to study more flashcards and track your progress.

Practise the cards

10 cards from this deck

Show

Higher-order function definition

Takes functions as inputs or produces a function as output

Map function purpose

Applies a given function to every element in a list

Filter function purpose

Creates new list with only elements meeting specific criteria

Predicate function definition

Function that returns a Boolean value (TRUE or FALSE)

Reduce/fold function purpose

Combines list values into single value using specified function

List data type rule

All elements must share the same data type

Head of a list

The first element in a list

Tail of a list

All elements in the list apart from the head

How reduce/fold processes a list

Recursively applies function until list is empty

When a list can be empty

When first created or after all data removed

Explore AQA A-Level Computer Science Revision Notes by Topics

Explore AQA A-Level Computer Science Model Answers by Topics

Explore AQA A-Level Computer Science Quizzes by Topics

Explore AQA A-Level Computer Science Exam Questions by Topics

Join 100,000+ A-Level students studying Flashcards with us.

Select your subjects, and get access to A+ resources today.