I was curious about how to define a linear function in a vector space whose basis is not countable. In this case, to have a concrete example, I though about the sequence space in $\mathbb{R}$, that is,
$$\mathbb{R}^\mathbb{N}=\prod^{\infty}\mathbb{R}$$
Imagine that we wanted to define a linear function $A_{i,j}$ that for a sequence $x$ in $\mathbb{R}$ it acts as a swap elements operator:
$$x=(x_1, x_2, ..., x_i, ..., x_j,...)$$
$$A_{i,j}(x) = (x_1, x_2, ..., x_j, ..., x_i,...)$$
If the basis is not countable, how can we express $x$ in terms of a linear combination of the elements of the basis $\{e_1, e_2, ...\}$ i.e.: as a vector of some coordinates? And, without this notation, how can we express our function $A_{i,j}$? In the case of $\mathbb{R}^n$, it is be trivial to construct a swap matrix that represents such function. Is it even possible to find a (infinite) matrix form in this other case?
Edit: thank you very much for the comments. One of them made me realise that maybe my choice of the function $A_{i,j}$ is not the best for the question I have, since it only acts on a finite dimensional subspsce of $\mathbb{R}^\mathbb{N}$. In this sense, a better example could be a function $B_i$ that adds a $0$ at the i-th position of a sequence, that is,
$$B_i(x) = (x_1, x_2, ..., x_{i-1}, 0, x_i,...)$$