# Scoped functions

* We can defined a function inside a function and then it will be only available in that scope.
* Surprisingly (or not) we can call the function anywhere inside the scope, even before its declaration.

{% embed include file="src/examples/functions/scoped-functions/src/main.rs" %}

{% embed include file="src/examples/functions/scoped-functions/out.out" %}


