Question

2. Prove that a metric space X is discrete if and only if every function on X to an arbitrary second metric space is continuous.