BackwardLAWS.mark: def of bendtorch-core@0.1.0.0 Import: import bendtorch-core@0.1.0.0/src/autograd/backward_LAWS.bend as BackwardLAWS Lines 15-22 of bendtorch-core@0.1.0.0/src/autograd/backward_LAWS.bend: https://jend.leeeet.dev/read.txt?path=bendtorch-core@0.1.0.0/src/autograd/backward_LAWS.bend&start_line=15&end_line=22 import Base def mark(flags: List<&2, Bool>, +count: Nat, +target: Nat) -> List<&2, Bool>: match flags count: case Nil{} count: Nil{} case Con{flag, rest} 0n: flag <> rest case Con{flag, +rest} 1n+below: marked(flag, rest, unit => mark(rest, below, target), Nat.is_eq(below, target)) Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.is_eq https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/autograd/backward_LAWS.bend&name=marked