import std / bitops
var v = 0b0000_0011'u8
v.setBits(3, 5, 7)
doAssert v == 0b1010_1011'u8
Run
- What about `or=`, `and=` and `xor=`? ElegantBeef
- What about `or=`, `and=` and `xor=`? Araq
- What about `or=`, `and=` and `xor=`? Clonk
- What about `or=`, `and=` and `xor=`? Hlaaftana
- What about `or=`, `and=` and `xor=`? ynfle
- What about `or=`, `and=` and `xor=`? treeform
- What about `or=`, `and=` and `xor=`? juancarlospaco
- What about `or=`, `and=` and `xor=`? tsojtsoj
- What about `or=`, `and=` and `xor=`? ynfle
- What about `or=`, `and=` and `xor=`? tsojtsoj
- What about `or=`, `and=` and `xor=`? Araq
- What about `or=`, `and=` and `xor=`? tsojtsoj
- What about `or=`, `and=` and `xor=`? mratsim
