|
|
Initial revision
procedure stree(ltree)
local s
if *ltree = 1 then return ltree[1] # start with leaf
s := ltree[1] || "(" # append value
# append stree
every s ||:= stree(ltree[2 to *ltree]) || ","
return s[1:-1] || ")"
end
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.