StorageCertificate.normalized: def of stelliferous@0.0.2.0 Import: import stelliferous@0.0.2.0/proofs/storage_certificate.bend as StorageCertificate Lines 24-28 of stelliferous@0.0.2.0/proofs/storage_certificate.bend: https://jend.leeeet.dev/read.txt?path=stelliferous@0.0.2.0/proofs/storage_certificate.bend&start_line=24&end_line=28 import Base import stelliferous@0.0.2.0/proofs/storage_tree_model.bend as Tree def normalized(-Element: Data,depth: Nat,+tree: Tree.Tree) -> Tree.Tree: match depth: case 0n: Tree.Leaf{first(Element,tree)} case 1n+ +rest: Tree.Node{normalized(Element,rest,left(Element,tree)),normalized(Element,rest,right(Element,tree))} Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=stelliferous@0.0.2.0/proofs/storage_certificate.bend&name=first https://jend.leeeet.dev/definition.txt?path=stelliferous@0.0.2.0/proofs/storage_certificate.bend&name=left https://jend.leeeet.dev/definition.txt?path=stelliferous@0.0.2.0/proofs/storage_certificate.bend&name=right https://jend.leeeet.dev/definition.txt?path=stelliferous@0.0.2.0/proofs/storage_tree_model.bend&name=Tree