func -- Anonymous function |
Syntax |
Func(ARGS) BODY EndFunc returns FUNCTION |
Description |
Example |
/**/ square := Func(x) Return x^2; EndFunc; /**/ square(3); 9 /**/ strings := ["x", "zzz", "yy"]; /**/ SortedBy(strings, Func(x,y) return len(x)>len(y); EndFunc); ["zzz", "yy", "x"] |
See Also |