def bool_count
import bend-collections@1.0.0.0/src/containers/bitset.bend as Bitsetimport Base
444def bool_count(bs: List<&2, Bool>) -> Nat:
445 match bs:
446 case Nil{}:
447 0n
448 case Con{b, t}:
449 1n+bool_count(t)
import bend-collections@1.0.0.0/src/containers/bitset.bend as Bitsetimport Base
444def bool_count(bs: List<&2, Bool>) -> Nat:
445 match bs:
446 case Nil{}:
447 0n
448 case Con{b, t}:
449 1n+bool_count(t)