I found these two posts but they don’t explain in detail why functions can be thought as tuples. The autor wants to show that $\mathbb R^n$ and $\mathbb R^{\{1,2,...,n\} }$ are actually the same thing.
Note: if $S$ is a set then $\mathbb R^S$ is the set of all functions from $S$ to $\mathbb R $.
Intrepreting tuples as functions
help understanding a paragraph from Linear Algebra Done Right