Work with sequences of binary numbers.
>>> [ 1, 0, 0, 0 ]
..> |> Binary.fromIntegers
..> |> Binary.shiftRightBy 1
..> |> Binary.toDecimal
4
>>> 4
..> |> Binary.fromDecimal
..> |> Binary.shiftLeftBy 1
..> |> Binary.toIntegers
[ 1, 0, 0, 0 ]
- Hexadecimal
- Decimal
- Integers
- Booleans
- Strings
- Basics: and, or, xor, not (complement)
- Shifting: left & right shift, left & right rotation
- Maths: add, subtract
- Collections: append, chunksOf, concat, dropLeadingZeros
- Sizing: ensureBits, makeIsomorphic, width