I have a list and I have functions.
I want to iterate the list and call the function that matches the lists element. How can I do that in a more elegant way than comparin