<< Click to Display Table of Contents >> Navigation: Script Language > Anonymous functions |
Library supports declaration of anonymous functions. Anonymous functions can be passed as parameter or assigned to variable.
Example:
t := function(s: string): string;
begin
Result := copy(s, 2, MaxInt)
end);
ShowMessage(t('123'));