I saw this note in a book and I don't fully understand it:
A monoid is, essentially, the same thing as a category with a single object.
I came up with an example that you can think of a monoid of real numbers with multiplication and $1$ ($(\mathbb{R}, \cdot, 1)$) as a category with single object - real numbers and functions from real to real, where all elements are multiplied by real numbers ($(\{\mathbb{R}\}, \{A \Rightarrow \{a \cdot r, a \in A\}, r \in \mathbb{R}\})$).
However it seems a bit counterintuitive for me. Let's consider a monoid $(C, \times, c_0)$, where $C$ is a set of its elements, $\times$ is a composable function $\times: (c_1, c_2) \rightarrow c_3$, where $c_1, c_2, c_3 \in C$ and c_0 is a unit element: $c \times c_0 = c_0 \times c = c$ for $c \in C$. We can construct a category with objects $C$ and morphisms being functions $f_{c'}: c \rightarrow c \times c'$, where $c' \in C$. Then the function $f_0: c \rightarrow c \times c_0$ is an isomorphism. Morphisms are composable: $f_{c_1} \circ f_{c_2} = f_{c_1 \times c_2}$.
For example having a monoid with natural numbers with zero, addition and zero ($(\mathbb{N} \cup \{0\}, +, 0)$) we can construct a category with natural numbers with zero and morphisms being functions $f_{n'}: n \rightarrow n + n'$ where $n' \in \mathbb{N} \cup \{0\}$ and $f_{0}$ as isomorphism: $(\mathbb{N} \cup \{0\}, \{n \rightarrow n + n', n' \in \mathbb{N} \cup \{0\}\})$.
Is my inderstanding correct or am I missing something?