bits xor for bits

Performs bitwise xor for ints.

WARNING

Command bits xor was not included in the official binaries by default, you have to build it with --features=extra flag

Signature

> bits xor {flags} (target)

Parameters

  • target: target int to perform bit xor

Input/output types:

inputoutput
intint
list<int>list<int>

Examples

Apply bits xor to two numbers

> 2 | bits xor 2
0

Apply logical xor to a list of numbers

> [8 3 2] | bits xor 2
╭───┬────╮
 0  10 
 1   1 
 2   0 
╰───┴────╯