apache-flexactionscript-3

what is the flex (ActionScript3) syntax for a function valued function's type?


What is the syntax to declare a type for my compare-function generator in code like the following?

    var colName:String = ""; // actually assigned in a loop
    gc.sortCompareFunction = function() : ??WHAT_GOES_HERE??
    {
       var tmp:String = colName;
       return function(a:Object,b:Object):int { return compareGeneral(a,b,tmp); };
    }();

Solution

  • Isn't "Function" a data type?