Slice.resized: def of bendtorch-core@0.1.0.0 Import: import bendtorch-core@0.1.0.0/src/tensor/slice.bend as Slice Lines 122-130 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=122&end_line=130 import Base # The input dimensions with the extent at the axis replaced. def resized(dimensions: List<&2, U32>, +dim: Nat, +extent: U32) -> List<&2, U32>: match dimensions dim: case head <> rest 0n: extent <> rest case head <> rest 1n+next: head <> resized(rest, next, extent) 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