bits or for bits

Performs bitwise or for ints.

WARNING

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

Signature

> bits or {flags} (target)

Parameters

  • target: target int to perform bit or

Input/output types:

inputoutput
intint
list<int>list<int>

Examples

Apply bits or to two numbers

> 2 | bits or 6
6

Apply logical or to a list of numbers

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