Using Lambdas to implement a function table https://www.labcorner.de/using-lambdas-to-implement-a-function-table/