Jump to content

Tree from nesting levels: Difference between revisions

m
(→‎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 forestFromNestedLevels''forestFromNestLevels'' function to map from a normalised input list to a generic tree, and
:# 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>
9,655

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.