Reduce.first_span: def of bendtorch-core@0.1.0.0 Import: import bendtorch-core@0.1.0.0/src/autograd/reduce.bend as Reduce Lines 44-49 of bendtorch-core@0.1.0.0/src/autograd/reduce.bend: https://jend.leeeet.dev/read.txt?path=bendtorch-core@0.1.0.0/src/autograd/reduce.bend&start_line=44&end_line=49 import Base import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape def first_span(+rows: List<&2, Shape.Row>, +extents: List<&2, Nat>) -> Nat: match rows extents: case Shape.Row{stride, +left, right} <> rest +extent <> others: span(left, extent) case rows extents: 0n Uses (4): 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=bendtorch-core@0.1.0.0/src/autograd/reduce.bend&name=span https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/shape/core.bend&name=Row