Function Results
So far, we’ve been pretending like all functions produce no result. But this isn’t true. In fact, it’s the opposite: every function produces a result value. By default, the result type of a function is the trusty old unit () we became so familiar with before.
How do we say what the result type of a function is? We use an “arrow”: