When the body is a single expression, you can drop the braces and put = before it. The compiler infers the return type from that expression unless you annotate it. This style is idiomatic for small pure helpers.
Equals instead of block
When the body is a single expression, you can drop the braces and put = before it. The compiler infers the return type from that expression unless you annotate it. This style is idiomatic for small pure helpers.