Flatten a list: Difference between revisions
Content added Content deleted
m (→{{header|AppleScript}}: Tidying and comments.) |
|||
Line 334: | Line 334: | ||
Or, to make more productive use of the language ("efficiency" is a function of the scripter's time, rather than the machine's) we can express this in terms of a generic '''concatMap''': |
Or, to make more productive use of the language (where "efficiency" is a function of the scripter's time, rather than the machine's) we can express this in terms of a generic '''concatMap''': |
||
{{trans|JavaScript}} |
{{trans|JavaScript}} |
||
<lang AppleScript>-- flatten :: Tree a -> [a] |
<lang AppleScript>-- flatten :: Tree a -> [a] |