Bitlist.count_add: def of bend-collections@1.0.0.0 Import: import bend-collections@1.0.0.0/src/containers/bitlist.bend as Bitlist Lines 194-199 of bend-collections@1.0.0.0/src/containers/bitlist.bend: https://jend.leeeet.dev/read.txt?path=bend-collections@1.0.0.0/src/containers/bitlist.bend&start_line=194&end_line=199 import Base import bend-collections@1.0.0.0/src/containers/bitset.bend as B import bend-collections@1.0.0.0/src/containers/dynamic_array.bend as D import bend-collections@1.0.0.0/src/containers/types/dynamic_array.bend as DE def count_add(g: D.DynArray<&2, U32> & Result<&2, &2, DE.Error, U32>, +acc: Nat) -> D.DynArray<&2, U32> & Nat: match g: case Tuple{w, Done{+x}}: (w, B.count_word(x, acc, U32.is_eq(x, 0))) case Tuple{w, Fail{e}}: (w, acc) Uses (9): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Sigma https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.is_eq https://jend.leeeet.dev/definition.txt?path=bend-collections@1.0.0.0/src/containers/bitset.bend&name=count_word https://jend.leeeet.dev/definition.txt?path=bend-collections@1.0.0.0/src/containers/dynamic_array.bend&name=DynArray https://jend.leeeet.dev/definition.txt?path=bend-collections@1.0.0.0/src/containers/types/dynamic_array.bend&name=Error