Let expressions
Sometimes you only want to give a name to something in a limited scope.
You can do that with a let
expression.
Here, pi
only exists in the circumference
function.
A let
expression can be helpful when you want to express logic as a series of steps.
You can define functions in let
expressions too.