XOR for Stream Word8
Closed this issue · 2 comments
simondlevy commented
I've been unable to find XOR (exclusive-or) for the Stream Word8 type. Advice appreciated.
ivanperez-keera commented
Sorry. I totally missed this.
Word8
is a member of the Bits
typeclass, so Stream Word8
should too (any Stream a
is an instance of Bits
for any a
that is an instance of Bits
and Typed
).
Can you use xor
or (.^.)
? https://hackage.haskell.org/package/copilot-language-3.10/docs/Copilot-Language-Operators-BitWise.html#v:.-94-.?
ivanperez-keera commented
Closing this issue due to inactivity.