def snoc_equal
bendtorch-core@0.1.0.0 · src/tensor/contracts/words_proof.bend:35
import bendtorch-core@0.1.0.0/src/tensor/contracts/words_proof.bend as WordsProof
import Base
35
36def snoc_equal(+before: List<&2, F32>, +after: List<&2, F32>, +word: F32, +other: F32,
37 rest: {before == after : List<&2, F32>}, last: {word == other : F32}) ->
38 {List.append(&2, F32, before, [word]) == List.append(&2, F32, after, [other]) : List<&2, F32>}:
39 %rest : {List.append(&2, F32, before, [word]) == List.append(&2, F32, _, [other]) : List<&2, F32>}
40 %last : {List.append(&2, F32, before, [word]) == List.append(&2, F32, before, [_]) : List<&2, F32>}
41 {==}