MlbendMetrics.count_right.go: def of mlbend-metrics@0.1.0.0 Import: import mlbend-metrics@0.1.0.0/main.bend as MlbendMetrics Lines 85-91 of mlbend-metrics@0.1.0.0/main.bend: https://jend.leeeet.dev/read.txt?path=mlbend-metrics@0.1.0.0/main.bend&start_line=85&end_line=91 import Base # the number of samples predicted right def count_right.go(ys: List<&2, Nat>, ps: List<&2, Nat>, n: Nat) -> Nat: match ys ps: case Con{y, yt} Con{p, pt}: count_right.go(yt, pt, (n + same(y, p) : Nat)) case _ _: n Uses (4): 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=Nat.add https://jend.leeeet.dev/definition.txt?path=mlbend-metrics@0.1.0.0/main.bend&name=same