AQA 7517 4.12.1.4: Partial function application
The free BugBot lessons that teach this point, a robot to try it on, and the past-paper questions that test it.
What it covers
Once functions are values, you can build new functions out of old ones instead of writing each one from scratch. This lesson covers the two ways the exam asks about: giving a function some of its arguments to get a new function (partial application), and joining two functions end to end (composition).
- Every function takes one argument
- Partial application in Python
- Composition of functions
- A sensor pipeline
Or do it in the simulator, with tasks that mark themselves
Lessons that teach it
- A13.4 Partial application and composition Functional programming
Why every Haskell function takes one argument, partial function application, functools.partial, and composing functions into a sensor… - A13.8 Project: the way out Functional programming
Sweep the bay, decide with a pipeline of pure functions built by composition, map, filter and fold, then drive out.
Try it on a robot
The task from A13.4 Partial application and composition, running here. Change the program and press Run.
The specification is AQA's own document; this page says which of our lessons teach point 4.12.1.4 and is not endorsed by the board.