Spec-Zone.ru › RethinkDB ruby

ReQL command: bit_or

Command syntax

r.bit_or(number) → number
r.bit_or(number[, number, ...]) → number

Description

A bitwise OR is a binary operation that takes two bit patterns of equal length and performs the logical inclusive OR operation on each pair of corresponding bits. The result in each position is 0 if both bits are 0, while otherwise the result is 1.

Example:

> r.expr(5).bit_or(3).run(conn)

7

Related commands

  • bit_and
  • bit_not
  • bit_sal
  • bit_sar
  • bit_xor

© RethinkDB contributors
Licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported License.
https://rethinkdb.com/api/ruby/bit_or/

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API