Open
Description
The main advantage of having proper functions for these code patterns is that the functions can have proper documentation.
-
incrementShift s = s + bitsPerSubkey
(Done in Introduce nextShift #432) -
anyMatch b1 b2 = b1 .&. b2 /= 0
-
isolateLowestSetBit x = x .&. negate x
(Alternative tocountTrailingZeros
for bitmap iteration #424)