MlbendMetrics.count_true.go: def of mlbend-metrics@0.1.0.0 Import: import mlbend-metrics@0.1.0.0/main.bend as MlbendMetrics Lines 51-57 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=51&end_line=57 import Base # the number of samples whose true label is k def count_true.go(ys: List<&2, Nat>, +k: Nat, n: Nat) -> Nat: match ys: case Nil{}: n case Con{y, yt}: count_true.go(yt, k, (n + same(y, k) : Nat)) 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