Visgraph.degrees.into: def of bend-visgraph@2.0.0.0 Import: import bend-visgraph@2.0.0.0/visgraph.bend as Visgraph Lines 561-570 of bend-visgraph@2.0.0.0/visgraph.bend: https://jend.leeeet.dev/read.txt?path=bend-visgraph@2.0.0.0/visgraph.bend&start_line=561&end_line=570 import Base # The degrees of the nodes of `es`, added into `d`; parallel.bend counts # them on every thread. def degrees.into(es: Edges, d: Array) -> Array: match es: case ENil{}: d case ECon{s, t, w, next}: degrees.into(next, atomic_bump(atomic_bump(d, s), t)) case EJoin{a, b}: degrees.into(b, degrees.into(a, d)) Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Array https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=bend-visgraph@2.0.0.0/visgraph.bend&name=Edges https://jend.leeeet.dev/definition.txt?path=bend-visgraph@2.0.0.0/visgraph.bend&name=atomic_bump