Tree from nesting levels: Difference between revisions
m
→AppleScript :: Functional
(→Applescript :: functional: Added a functional draft in AppleScript) |
|||
Line 124:
===Functional===
Mapping from the sparse list format to a generic tree structure, and using both:
:# a generic
:# a standard catamorphism over trees (''foldTree'') to generate both the nested list format, and the round-trip regeneration of a sparse list from the generic tree.
<lang applescript>
|