Tree datastructures: Difference between revisions
Content added Content deleted
Line 559: | Line 559: | ||
Nested to indent:same |
Nested to indent:same |
||
</pre> |
</pre> |
||
You can also strictly enforce these structures, which is obviously useful for debugging |
You can also strictly enforce these structures, which is obviously useful for debugging.<br> |
||
Admittedly this is somewhat more tedious, but at the same time infinitely more flexible and powerful than a "plain old struct". |
|||
<lang Phix>type indent_struct(object o) |
<lang Phix>type indent_struct(object o) |
||
if sequence(o) then |
if sequence(o) then |