contains method

bool contains(
  1. List<T> selection
)

Whether a selection is still in the storage structure.

Implementation

bool contains(List<T> selection) {
  _checkSelection(selection);
  final index = combinatorics.indexOf(selection).toInt(),
      byte = index ~/ 8,
      bit = index % 8,
      mask = 1 << bit;

  return _data.getUint8(byte) & mask == 0;
}