get-tree - (tree)
Contents
Description
get-tree provides information about <tree> (created by new-tree):
• <count> (in "count" clause) provides the number of keys (i.e. nodes) in the tree.
• <hops> (in "hops" clause) provides the number of nodes accessed to find a key in the last tree
statement executed prior to get-tree. Note that <hops> is available only in debug Golf build (see
installingfromsource); otherwise it is always zero.
Examples
Get the number of nodes (keys) in a tree:
new-tree mytree
...
get-tree mytree count c
Name
get-tree - (tree)
Purpose
Get information about a tree.
See Also
Tree
delete-treeget-treenew-treepurge-treeread-treeuse-cursorwrite-tree See all documentation
$DATE $VERSION GOLF(2gg)
Syntax
get-tree <tree> \
( count <count> ) | ( hops <hops> )
