Bits.ofIndexPairs constructor

Bits.ofIndexPairs(
  1. Iterable<(int, bool)> pairs
)

Implementation

Bits.ofIndexPairs(Iterable<(int index, bool value)> pairs) : _bits = const Bits.allZeros().withEachBool(pairs);