Documentation

CslibFrontier.Foundations.Data.BitString.HalfSplit

Splitting a bit string into two halves #

An n-bit string splits into its first n / 2 bits and its remaining n - n / 2 bits. For odd n the second part is one bit longer than the first, so the split applies to every block length.

Main definitions #

Split an n-bit string into its first n / 2 bits and its remaining n - n / 2 bits, for both even and odd n.