Function types are useful with higher order functions.
function ( ) [ : ]Example:
var t : (function(int):int);By the above definition,
t can only be assigned a function which matches the provided signature:
function f(a : int) { return a; } t = f; // OK function g(a : int) { } t = g; // ERROR - g does not have the same return type