def contains_index

stelliferous@0.0.2.0 · tensor_view.bend:147

import stelliferous@0.0.2.0/tensor_view.bend as TensorView
import Base

147def contains_index(indices: List<&2,Nat>,+axis: Nat) -> Bool:
148  match indices:
149    case Nil{}: False{}
150    case Con{index,tail}: Nat.is_eq(index,axis) || contains_index(tail,axis)

Uses (5)

Used by (1)