Axiom schema of replacement: Let the domain of the function $F$ be the set $A$. Then the range of $F$ (the values of $F(x)$ for all members $x$ of $A$) is also a set. — Tarski–Grothendieck set theory
I can't fully appreciated the axiom; for me, when talking about the function $F$, we should assume a domain and a range before. So sounds that the axiom is circular.
So my question is: what is a function?
If a function is defined not through sets, then it sounds that “function” is more fundamental concept than “set.”
A function $f: A \rightarrow B$ is just a subset $f \subseteq A \times B$ such that for every $a \in A$ there is a unique $b =: f(a) \in B$ with $(a,b) \in f$. Note that $A\times B$ exists as $A \times B = \{ (a,b) \mid a \in A, b \in B \}= \{ \ \{\ \{a\} \ ,\ \{a,b\}\ \} \mid a\in A, b \in B \} \subseteq \mathcal P(\mathcal P(A \cup B)) $, where $\mathcal P(X)$ denotes the power set of $X$. Also note that we didn't make use of the axiom schema of replacement here.