# Pass function as argument - hello world

* [Advanced Functions and Closures](https://doc.rust-lang.org/book/ch19-05-advanced-functions-and-closures.html)

pass function as a parameter to another function

{% embed include file="src/examples/advanced-functions/pass-function-as-argument-simple/src/main.rs" %}
{% embed include file="src/examples/advanced-functions/pass-function-as-argument-simple/out.out" %}


