Skip to content

Latest commit

 

History

History
52 lines (38 loc) · 1006 Bytes

bits_xor.md

File metadata and controls

52 lines (38 loc) · 1006 Bytes
title categories version bits usage
bits xor
bits
0.86.0
Performs bitwise xor for ints.
Performs bitwise xor for ints.

{{ $frontmatter.title }} for bits

{{ $frontmatter.bits }}

Signature

> bits xor {flags} (target)

Parameters

  • target: target int to perform bit xor

Input/output types:

input output
int int
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
╭───┬────╮
│ 010 │
│ 11 │
│ 20 │
╰───┴────╯

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