def mark_all
import bendtorch-core@0.1.0.0/src/autograd/backward_LAWS.bend as BackwardLAWSimport Base
37def mark_all(ids: List<&2, Nat>, +count: Nat, flags: List<&2, Bool>) -> List<&2, Bool>:
38 match ids:
39 case Nil{}:
40 flags
41 case Con{+id, rest}:
42 mark_all(rest, count, mark(flags, count, id))