I don't have a concrete example, it is just something that I was experimenting with as a possible alternative to a switch/case that called functions, so no problem if it is not possible or is too complicated to make it worthwhile
I think that is the key thing and you are right, that feels wrong, rather like trying to have an array of different data types. If only you could iterate through the elements of a struct...
Thanks for all the input