Slice.dropped: def of bendtorch-core@0.1.0.0 Import: import bendtorch-core@0.1.0.0/src/tensor/slice.bend as Slice Lines 132-140 of bendtorch-core@0.1.0.0/src/tensor/slice.bend: https://jend.leeeet.dev/read.txt?path=bendtorch-core@0.1.0.0/src/tensor/slice.bend&start_line=132&end_line=140 import Base # The input dimensions without the axis, as `select` returns them. def dropped(dimensions: List<&2, U32>, +dim: Nat) -> List<&2, U32>: match dimensions dim: case head <> rest 0n: rest case head <> rest 1n+next: head <> dropped(rest, next) case Nil{} _: Nil{} Uses (3): 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=U32