Algo.bitw.popcount.step: def of bend-osdev-algo@0.1.0.0 Import: import bend-osdev-algo@0.1.0.0/algo.bend as Algo Lines 37-42 of bend-osdev-algo@0.1.0.0/algo.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-algo@0.1.0.0/algo.bend&start_line=37&end_line=42 import Base def bitw.popcount.step(b: Bool, k: Nat) -> Nat: match b: case True{}: 1n+k case False{}: k Uses (2): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat