Currying: Difference between revisions

No change in size ,  4 years ago
m
Line 45:
=={{header|AppleScript}}==
 
The nearest thing to a first-class function in AppleScript is a 'script' in which a 'handler' (with some default or vanilla name like 'call' or 'lambda') is embedded). First class use of an ordinary 2nd class 'handler' function requires 'lifting' it into an enclosing script – a process which can be abstracted to a general mReturn function.
 
<lang AppleScript>-- curry :: (Script|Handler) -> Script
9,655

edits