Sgd.refusal_at: def of bendtorch-core@0.1.0.0 Import: import bendtorch-core@0.1.0.0/src/autograd/sgd.bend as Sgd Lines 67-78 of bendtorch-core@0.1.0.0/src/autograd/sgd.bend: https://jend.leeeet.dev/read.txt?path=bendtorch-core@0.1.0.0/src/autograd/sgd.bend&start_line=67&end_line=78 import Base import bendtorch-core@0.1.0.0/src/autograd/tensor_backward.bend as Backward # Why id cannot be a parameter of a newest-first list of count nodes, or # None when it is a leaf the list holds. def refusal_at(nodes: List<&2, Backward.Node>, +count: Nat, +id: Nat, same: Bool) -> Maybe<&2, Error>: match nodes count same: case Nil{} count same: Some{UnknownNode{}} case Con{node, rest} 0n same: Some{UnknownNode{}} case Con{node, rest} 1n+below True{}: leaf_refusal(node) case Con{node, rest} 1n+below False{}: refusal_at(rest, below, id, Backward.at_head(below, id)) Uses (8): 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=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/autograd/sgd.bend&name=Error https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/autograd/sgd.bend&name=leaf_refusal https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/autograd/tensor_backward.bend&name=Node https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/autograd/tensor_backward.bend&name=at_head