// define your inner function as a named variable
var foo = function() { print("hello Unity"); }
// define your outer function normally
function boo(passedFunction) {
// call the passed function
passedFunction();
}
// call the outer function using the named-variable-function
boo(foo);