def from_bools

bend-collections@1.0.0.0 · src/containers/bitset.bend:451

import bend-collections@1.0.0.0/src/containers/bitset.bend as Bitset
import Base

451# Bitset whose logical bits are exactly bs (bit 0 first).
452def from_bools(+bs: List<&2, Bool>) -> Bitset:
453  fill(bs, 0n, new(bool_count(bs)))

Uses (6)

Used by (1)