On Thursday, 2 July 2015 at 00:29:46 UTC, rsw0x wrote:
all bitwise ops except for shifting are fundamental math
operators just like addition and subtraction if you view an
integer as a bitstring(which is what it is...)
I must have missed something in my math classes.
"Like the natural numbers, Z is closed under the operations of
addition and multiplication" [1]
build in Integer are not really closed, but close enough.
No mentioning of shift operations though.
[1] https://en.wikipedia.org/wiki/Integer