Is it possible to define a list using variants (or something else) which would contain integers and functions simultaneously? I am particularly interested in mixing functions and some other type in a list.
Analogously is it possible to create a function which could return either a number or a function? Please if possible give code examples of both cases.
Test :