Hi,
I want to create an array (or similar) with references (or pointer) to functions and I want to be able to call a function by indexing the array. e.g like this example
But do note some restrictions:
All of the functions in the array must be of the same type, meaning same return type and same parameters.
This can only work for non capturing closures and bare functions like above.