The library documents itself · Collections & objects
stzTree
34 own methods · 12 forms written with extensions, listed under their method · Also inherits from stzList (878)
the source: base/list/stzTree.ring(opens in a new tab) · All classes · The area reference: Collections & objects
Under each method, its extensions (Q CS XT Z ZZ IB W U): bold and ticked, it exists; struck, it does not. The extensions and what they mean
Examples: 0 come from the library's tests; 12 were composed from each method's signature and run for this page, on a fresh object, for example o1 = new stzTree( :root = [ :node1 = [ "X", :node11 = [ "A", "B", "C", "D", "X" ] ], :node2 = [ 1, 2, 3 ], :node3 = [ "X", 4, 5 ] ] ). 22 methods have none yet. Examples run on 2026-10-03 20:23 inside the library at commit 0e72e2e2c.
Method
Explanation, as the source carries it
init
(no comment in the source: the name reads as a sentence) initno extension
Root
(no comment in the source: the name reads as a sentence) rootno extension
composed example
o1 = new stzTree( :root = [ :node1 = [ "X", :node11 = [ "A", "B", "C", "D", "X" ] ], :node2 = [ 1, 2, 3 ], :node3 = [ "X", 4, 5 ] ] ) ? @@( o1.Root() ) #--> [ "root", [ [ "node1", [ "X", [ "node11", [ "A", "B", "C", "D", "X" ] ] ] ], [ "node2", [ 1, 2, 3 ] ], [ "node3", [ "X", 4, 5 ] ] ] ]composed from the signature, run for this page
Show
visualizing the tree contentno extension
Branches
managing branchesalso written: AllBranchesno extension
composed example
o1 = new stzTree( :root = [ :node1 = [ "X", :node11 = [ "A", "B", "C", "D", "X" ] ], :node2 = [ 1, 2, 3 ], :node3 = [ "X", 4, 5 ] ] ) ? @@( o1.Branches() ) #--> [ "[:root]", "[:root][:node1]", "[:root][:node1][:node11]", "[:root][:node2]", "[:root][:node3]" ]composed from the signature, run for this page
Nodes
(no comment in the source: the name reads as a sentence) nodesalso written: AllNodesin the section managing nodesQCSXTZZZIBWU
composed example
o1 = new stzTree( :root = [ :node1 = [ "X", :node11 = [ "A", "B", "C", "D", "X" ] ], :node2 = [ 1, 2, 3 ], :node3 = [ "X", 4, 5 ] ] ) ? @@( o1.Nodes() ) #--> [ "root", "node1", "node11", "node2", "node3" ]composed from the signature, run for this page
TheseNodes
(no comment in the source: the name reads as a sentence) these nodesin the section managing nodesno extension
NodesAndTheirBranches
(no comment in the source: the name reads as a sentence) nodes and their branchesin the section managing nodesno extension
composed example
o1 = new stzTree( :root = [ :node1 = [ "X", :node11 = [ "A", "B", "C", "D", "X" ] ], :node2 = [ 1, 2, 3 ], :node3 = [ "X", 4, 5 ] ] ) ? @@( o1.NodesAndTheirBranches() ) #--> [ [ "root", "[:root]" ], [ "node1", "[:root][:node1]" ], [ "node11", "[:root][:node1][:node11]" ], [ "node2", "[:root][:node2]" ], [ "node3", "[:root][:node3]" ] ]composed from the signature, run for this page
FindNode
(no comment in the source: the name reads as a sentence) find nodein the section managing nodesno extension
Node
(no comment in the source: the name reads as a sentence) nodealso written: ItemsInNodein the section managing nodesno extension
NodeAt
(no comment in the source: the name reads as a sentence) node atin the section managing nodesno extension
NodesAt
(no comment in the source: the name reads as a sentence) nodes atin the section managing nodesno extension
FindTheseNodes
(no comment in the source: the name reads as a sentence) find these nodesin the section managing nodesno extension
FindNodes
(no comment in the source: the name reads as a sentence) find nodesalso written: FindAllNodesin the section managing nodesno extension
composed example
o1 = new stzTree( :root = [ :node1 = [ "X", :node11 = [ "A", "B", "C", "D", "X" ] ], :node2 = [ 1, 2, 3 ], :node3 = [ "X", 4, 5 ] ] ) ? @@( o1.FindNodes() ) #--> [ "[:root]", "[:root][:node1]", "[:root][:node1][:node11]", "[:root][:node2]", "[:root][:node3]" ]composed from the signature, run for this page
Items
(no comment in the source: the name reads as a sentence) itemsalso written: AllItemsin the section managing itemsQCSXTZZZIBWUWFExcept
composed example
o1 = new stzTree( :root = [ :node1 = [ "X", :node11 = [ "A", "B", "C", "D", "X" ] ], :node2 = [ 1, 2, 3 ], :node3 = [ "X", 4, 5 ] ] ) ? @@( o1.Items() ) #--> [ "X", "A", "B", "C", "D", "X", 1, 2, 3, "X", 4, 5 ]composed from the signature, run for this page
ItemsAndTheirPaths
(no comment in the source: the name reads as a sentence) items and their pathsin the section managing itemsQCSXTZZZIBWU
FindItem
(no comment in the source: the name reads as a sentence) find itemin the section finding itemsQCSXTZZZIBWU
composed example
o1 = new stzTree( :root = [ :node1 = [ "X", :node11 = [ "A", "B", "C", "D", "X" ] ], :node2 = [ 1, 2, 3 ], :node3 = [ "X", 4, 5 ] ] ) ? @@( o1.FindItem(3) ) #--> [ "[:root][:node2][3]" ]composed from the signature, run for this page
FindThisItem
(no comment in the source: the name reads as a sentence) find this itemin the section finding itemsQCSXTZZZIBWU
FindTheseItems
(no comment in the source: the name reads as a sentence) find these itemsin the section finding itemsQCSXTZZZIBWU
composed example
o1 = new stzTree( :root = [ :node1 = [ "X", :node11 = [ "A", "B", "C", "D", "X" ] ], :node2 = [ 1, 2, 3 ], :node3 = [ "X", 4, 5 ] ] ) ? @@( o1.FindTheseItems([ 2, 3 ]) ) #--> [ "[:root][:node2][2]", "[:root][:node2][3]" ]composed from the signature, run for this page
FindAllItemsCS
(no comment in the source: the name reads as a sentence) find all items csin the section finding itemsno extension
FindItems
(no comment in the source: the name reads as a sentence) find itemsin the section finding itemsQCSXTZZZIBWUWF
ItemAt
(no comment in the source: the name reads as a sentence) item atin the section finding itemsno extension
ItemsAt
(no comment in the source: the name reads as a sentence) items atin the section finding itemsno extension
AddNodeAt
adding nodes and itemsno extension
AddItemAt
adding nodes and itemsQCSXTZZZIBWU
NumberOfNodesInBranch
(no comment in the source: the name reads as a sentence) number of nodes in branchalso written: CountNodesInPath · CountNodesInBranch · HowManyNodesInPath · NumberOfNodesInPath · HowManyNodesInBranchin the section geeting nodes from a branchno extension
composed example
o1 = new stzTree(
:root = [
:node1 = [ "X", :node11 = [ "A", "B", "C", "D", "X" ] ],
:node2 = [ 1, 2, 3 ],
:node3 = [ "X", 4, 5 ]
]
)
? o1.NumberOfNodesInBranch("a")
#--> 1composed from the signature, run for this pageNodesInBranch
(no comment in the source: the name reads as a sentence) nodes in branchalso written: NodesInPathin the section geeting nodes from a branchno extension
composed example
o1 = new stzTree(
:root = [
:node1 = [ "X", :node11 = [ "A", "B", "C", "D", "X" ] ],
:node2 = [ 1, 2, 3 ],
:node3 = [ "X", 4, 5 ]
]
)
? @@( o1.NodesInBranch("a") )
#--> [ "a" ]composed from the signature, run for this pageNthNodeInBranch
(no comment in the source: the name reads as a sentence) nth node in branchalso written: NthNodeInPathin the section geeting nodes from a branchno extension
FirstNodeInBranch
(no comment in the source: the name reads as a sentence) first node in branchalso written: FirstNodeInPathin the section geeting nodes from a branchno extension
composed example
o1 = new stzTree(
:root = [
:node1 = [ "X", :node11 = [ "A", "B", "C", "D", "X" ] ],
:node2 = [ 1, 2, 3 ],
:node3 = [ "X", 4, 5 ]
]
)
? o1.FirstNodeInBranch("a")
#--> acomposed from the signature, run for this pageLastNodeInBranch
(no comment in the source: the name reads as a sentence) last node in branchalso written: LastNodeInPathin the section geeting nodes from a branchno extension
composed example
o1 = new stzTree(
:root = [
:node1 = [ "X", :node11 = [ "A", "B", "C", "D", "X" ] ],
:node2 = [ 1, 2, 3 ],
:node3 = [ "X", 4, 5 ]
]
)
? o1.LastNodeInBranch("a")
#--> acomposed from the signature, run for this pageRemoveThisItemCS
removing items and nodesno extension
RemoveItem
removing items and nodesQCSXTZZZIBWU
RemoveTheseItems
removing items and nodesQCSXTZZZIBWU
RemoveItems
removing items and nodesno extension
RemoveAllItems
removing items and nodesno extension

