Folds the instruction list into a single value.
Program to fold.
Combines the accumulator with each instruction.
Starting accumulator.
The final accumulator.
Folds the instruction list into a single value.