Let $E$ be a metric space, $f: E \rightarrow \mathbb{R}$ and $\bar{x} \in \text{cl}(E)$. We say that $\lim_{x \rightarrow \bar{x}} f(x) = L$ if:
$\textit{Heine's definition}$: for any sequence $x_n \rightarrow \bar{x}$ and for any $\epsilon >0$ there exists $N \in \mathbb{N}$ such that $|f(x_n)-L|<\epsilon$ for any $n>N$;
$\textit{Cauchy's definition}$: for any $\epsilon >0$ there exists $\delta >0$ such that $|f(x)-L|<\epsilon$ whenever $\text{d}(x,\bar{x})<\delta$.
How can I prove that Heine's definition implies Cauchy's?