Be concise.
Be useful.
All contributions dictatorially edited by webmasters to match personal tastes.
Please do not paste any copyright violating material.
Please try to avoid dependencies to third-party libraries and frameworks.
c := make([]byte, len(a))
for i := range a {
c[i] = a[i] ^ b[i]
}
var c T
for i := range a {
c[i] = a[i] ^ b[i]
}
const c = Uint8Array.from(a, (v, i) => v ^ b[i])
int i, n = a.length;
byte c[] = new byte[n];
for (i = 0; i < n; ++i)
c[i] = (byte) (a[i] ^ b[i]);
(map '(vector (unsigned-byte 8)) #'logxor a b)
local c = {}
for i=1,#a do
c[i] = string.char(string.byte(a, i) ~ string.byte(b, i))
end
c = table.concat(c)
SetLength(c, Length(a));
for i := Low(a) to High(a) do c[i] := a[i] xor b[i];
c = bytes([aa ^ bb for aa, bb in zip(a, b)])
c = a.zip(b).map{|aa, bb| aa ^ bb}
let c: Vec<_> = a.iter().zip(b).map(|(x, y)| x ^ y).collect();