19.0.0 released Nov 08, 2023
Purpose: Get information about tree.
get-tree <tree> \
( count | hops ) \
to [ define ] <result>
get-tree provides information about <tree> (created by new-tree), which is stored in <result> (in "to" clause):
- "count" clause provides the number of keys (i.e. nodes) in the tree.
- "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 Vely build (see installing from source); otherwise it is always zero.
<result> can be created with optional "define".
Get the number of nodes (keys) in a tree:
get-tree mytree count to define c
You are free to copy, redistribute and adapt this web page (even commercially), as long as you give credit and provide a dofollow link back to this page - see full license at CC-BY-4.0
. Copyright (c) 2019-2023 Dasoftver LLC. Vely and elephant logo are trademarks of Dasoftver LLC. The software and information on this web site are provided "AS IS" and without any warranties or guarantees of any kind. Icons from table-icons.io
copyright Paweł Kuna, licensed under MIT