Higher-order functions: Difference between revisions
Content added Content deleted
Line 290: | Line 290: | ||
--> {0, 2, 4, 6, 8, 10}</lang> |
--> {0, 2, 4, 6, 8, 10}</lang> |
||
As a footnote on lifting 2nd class AppleScript handlers into |
As a footnote on lifting 2nd class AppleScript handlers into 1st class script objects for use with higher order functions, the role of '''mReturn''' or '''mInject''' can be inlined in such functions as followed, if preferred: |
||
<lang AppleScript>-- [a] -> (a -> b) -> [b] |
<lang AppleScript>-- [a] -> (a -> b) -> [b] |