def count_half

bend-visgraph@2.0.0.0 · visgraph.bend:893

import bend-visgraph@2.0.0.0/visgraph.bend as Visgraph
import Base

893def count_half(present: Bool, +u: U32, +v: U32, c: Counts) -> Counts:
894  match present:
895    case True{}:
896      Counts{outs, ins} = c
897      Counts{bumped(Array.get(U32, outs, u), u), bumped(Array.get(U32, ins, v), v)}
898    case False{}:
899      c

Uses (5)

Used by (1)