Higher-order functions: Difference between revisions
→{{header|AppleScript}}
Line 199:
sing about "closures" by (hire for "Pipe Organ")</lang>
As we can see above, AppleScript functions (referred to as 'handlers' in Apple's documentation) are not, in themselves, first class objects. They can only be applied within
We could, for example, write '''map''', '''fold/reduce''' and '''filter''' functions for AppleScript as follows:
|