Hi have a questioning regarding the modelling of $n$-ary functions and constants.
First in the category of sets I know that the empty set $\emptyset$ is initial because for every other set $X$ there exists exactly one function $f$ such that $f: \emptyset \to X$ because there is no argument to choose from in the domain and set it's value, this function is unique.
I have some experience with functional programming languages and I heard that category theroy is applied in modelling them, but I am not so much into this stuff yet. But I asked myself how to model $n$-nary functions in category theory. My prior knowledge is
1) An $n$-nary function in mathematics could be modelled by cross-products, i.e a binary function on $\mathbb{N}$ is $f: \mathbb{N} \times \mathbb{N} \to X$.
2) In computer sciene and functional programming languages constants are sometimes modelled as $0$-ary functions (and in some algebraic approaches to model theory the constants are also interpreted as $0$-ary functions).
But here starts my conceptual confusion. First, the cross products of sets are also in the category of sets. So it would be now problem to represent a binary function by an arrow $f : \mathbb{N} \times \mathbb{N} \to X$. But what is the arity of the function $f : \emptyset \to X$. Because of $\emptyset \times X = \emptyset$, it should have all arities, i.e. it has $0$-arity, $1$-arity, binary and so on. So because it is $0$-arity too it should represent a constant, but what should this constant be?
But what really bothers me, how could the $0$-ary functions be represented in category theory (in the category of sets) as an arrows? I found some $0$-ary functions, the functions $f: \emptyset \to X$, but I am unsure how these could model constants?
Any hints or further suggestions for me, or is my attempt at modelling arity totally wrong?