There are several solutions.

Do all functions have the same parameters and return types? If yes, then one solution is a map. Another solution is an array.

Kuphryn