def bytes.depth

gralha-bytes@0.1.0.1 · bytes.bend:415

import gralha-bytes@0.1.0.1/bytes.bend as Bytes
import Base
import gralha-text-scan@0.1.0.1/scan.bend as U

415def bytes.depth(+size: U32, +side: U32, +depth: Nat) -> Nat:
416  U.branch(Nat, U32.is_ge(side, size), _ => depth, _ => bytes.depth(size, (side * 2 : U32), 1n+depth))

Uses (5)

Used by (1)