Report.sequence_text: def of bend-visgraph@2.0.0.0 Import: import bend-visgraph@2.0.0.0/src/report.bend as Report Lines 41-50 of bend-visgraph@2.0.0.0/src/report.bend: https://jend.leeeet.dev/read.txt?path=bend-visgraph@2.0.0.0/src/report.bend&start_line=41&end_line=50 import Base # The degree sequence, one per line. `r` is the degree array with the # degree of node `i`; the `f` nodes below `i` are still to print. def sequence_text(f: Nat, r: Array & U32, +i: U32, acc: String) -> String: match f: case 0n: (d, v) = r U32.show(v) ++ "\n" ++ acc case 1n+q: (d, v) = r sequence_text(q, Array.get(U32, d, (i - 1 : U32)), (i - 1 : U32), U32.show(v) ++ "\n" ++ acc) Uses (10): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Array https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Array.get https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Sigma https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.append https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.show https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.sub