I was interested in creating functions without having to manually define them. This is useful if we want to automatically create a large number of functions, for instance inside a for loop and using a builder function. Unfortunately I wasn't able to find a canonical example of this.
This should cover everything need for the dynamic creation.