A functional is essentially a function of a function, which is sort of what you're talking about.
http://en.wikipedia.org/wiki/Functio...mathematics%29
I suppose you could also consider a function of an infinite sequence of discrete variables, but I don't know the name of such a thing.