Packagevegas.util
Classpublic class FunctionUtil

The FunctionUtil utility class is an all-static class with methods for working with function.



Public Methods
 MethodDefined by
  
clone(f:Function):Function
[static] Returns a copy by value of this function.
FunctionUtil
  
copy(f:Function):Function
[static] Returns a copy by value of this object.
FunctionUtil
  
equals(f1:Function, f2:Function):Boolean
[static] Compares if two Functions are equal by reference.
FunctionUtil
  
toSource(f:Function):String
[static] Should returns a string representing the source code of the function, but instead the choice has been made to only return the string “(function)”.
FunctionUtil
Method detail
clone()method
public static function clone(f:Function):Function

Returns a copy by value of this function. Attention : we can not copy by reference a function , if you want to do that use apply or call method to make a kind of delegate.

Parameters
f:Function

Returns
Function
copy()method 
public static function copy(f:Function):Function

Returns a copy by value of this object.

Parameters
f:Function

Returns
Function
equals()method 
public static function equals(f1:Function, f2:Function):Boolean

Compares if two Functions are equal by reference.

Parameters
f1:Function
 
f2:Function

Returns
Boolean
toSource()method 
public static function toSource(f:Function):String

Should returns a string representing the source code of the function, but instead the choice has been made to only return the string “(function)”.

Parameters
f:Function

Returns
String