The idea of studying the relationship between structured spaces and appropriate spaces of functions thereon could be described as one of the basic principles of functional analysis, perhaps even the defining one.

Examples: 

completely regular spaces and continuous functions, general, bounded or of compact support (in the locally compact case);

$\sigma$- algebras and (bounded) measurable functions;