def bitmap.bits
import bend-osdev-algo@0.1.0.0/bitmap.bend as Bitmapimport Base
import bend-osdev-algo@0.1.0.0/algo.bend as A
48# the bits of the words, bit 0 of the first word first
49def bitmap.bits(words: List<&2, U32>) -> List<&2, Bool>:
50 match words:
51 case Nil{}:
52 Nil{}
53 case Con{x, t}:
54 A.bitw.to_list(32n, A.bits32.word(x), bitmap.bits(t))