logos.lang.writ.document
Module lang · package logos-lang
Functions
fndepth
fn depth(v: WAny) -> i64
Returns the maximum nesting depth of the tree rooted at v.
A scalar/string or empty container has depth 1; otherwise 1 + the deepest child.
fnnode_count
fn node_count(v: WAny) -> i64
Counts value nodes in the tree rooted at v.
Each scalar / string / array / map counts as one node; container children
are recursed. A null root is an empty document (0 nodes).