Some applications of the transfinite diameter to the theory of functions