TensorModel.scan: def of stelliferous@0.0.2.0 Import: import stelliferous@0.0.2.0/tensor_model.bend as TensorModel Lines 36-41 of stelliferous@0.0.2.0/tensor_model.bend: https://jend.leeeet.dev/read.txt?path=stelliferous@0.0.2.0/tensor_model.bend&start_line=36&end_line=41 import Base def scan(rest: Store,same: Bool,+name: String,tensor: Tensor(),+wanted: String) -> Tensor() & Store: match rest same: case Empty{} True{}: (tensor,Empty{}) case Entry{next,other,more} True{}: (tensor,Entry{next,other,more}) case Empty{} False{}: (missing(wanted),Entry{name,tensor,Empty{}}) case Entry{+next,other,more} False{}: passed(name,tensor,scan(more,String.eq(next,wanted),next,other,wanted)) Uses (9): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Sigma https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.eq https://jend.leeeet.dev/definition.txt?path=stelliferous@0.0.2.0/tensor_model.bend&name=Store https://jend.leeeet.dev/definition.txt?path=stelliferous@0.0.2.0/tensor_model.bend&name=Tensor https://jend.leeeet.dev/definition.txt?path=stelliferous@0.0.2.0/tensor_model.bend&name=missing https://jend.leeeet.dev/definition.txt?path=stelliferous@0.0.2.0/tensor_model.bend&name=passed