@[irreducible]
Equations
- ByteArray.ofBits' acc bs = if bs = [] then acc else match _h : List.splitAt 8 bs with | (xs, bs') => ByteArray.ofBits' (UInt8.ofBits xs :: acc) bs'
Instances For
Equations
- ByteArray.ofBits bs = { data := { toList := (ByteArray.ofBits' [] bs).reverse } }
Instances For
Equations
- bs.toBits = List.flatMap UInt8.toBits bs.data.toList