As I was reading through some wiki articles, as well as my texts, I found the following two definitions for the ordered pairs and $n$-tuples:
$(a,b):=\{\{a\},\{a,b\}\};\quad (a_1,a_2,\ldots,a_n):=(X,Y,F)$,
where in the second equation an $n$-tuple is represented as a function from $X$ (whose cardinality is $n$) to $Y$, via the rule $F$.
Okay... but here is my question: it seems to me that in order to define what a function is, which is itself a triple, I must devise a way to define such triple. Fine, one can extend the definition of an ordered pair to define triples, or any $n$-tuple for that matter, so how do we reconcile this fact? I mean, how does one define in the first place a triple, so that one can meaningly talk about functions, and use that very thing to define... what is exactly the same thing? I am lost.
So mainly my question is as follows: if one uses a triple to define $n$-tuples, how does one define that triple? If there exists another way to define that triple, why then one would bother using functional definition?
Thanks bunch in advance!