set

fun BitSet.set(index: Long)(source)

sets the bit at index (shorthand for this[index] = true)


fun BitSet.set(index: Int)(source)

sets the bit at index (short-hand for this[index] = true)


fun BitSet.set(indexes: LongRange)(source)

sets the bits in indexes (shorthand for this[indexes] = true)


fun BitSet.set(fromIndex: Long, toIndex: Long)(source)

sets all bits from fromIndex (inclusive) to toIndex (exclusive)