PermutationMapping.reverse_go_cancel: def of bendtorch-core@0.1.0.0 Import: import bendtorch-core@0.1.0.0/src/tensor/permutation_mapping.bend as PermutationMapping Lines 33-40 of bendtorch-core@0.1.0.0/src/tensor/permutation_mapping.bend: https://jend.leeeet.dev/read.txt?path=bendtorch-core@0.1.0.0/src/tensor/permutation_mapping.bend&start_line=33&end_line=40 import Base import bendtorch-core@0.1.0.0/src/tensor/layout.bend as Layout def reverse_go_cancel(+values: List<&2, U32>, +accumulator: List<&2, U32>) -> {Layout.reverse_words_go(Layout.reverse_words_go(values, accumulator), Nil{}) == Layout.reverse_words_go(accumulator, values) : List<&2, U32>}: match values: case Nil{}: {==} case +head <> +tail: reverse_go_cancel(tail, head <> accumulator) 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=U32 https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/tensor/layout.bend&name=reverse_words_go