BitOr

From MiniScript Wiki
Revision as of 23:02, 15 March 2020 by ZachStrout (talk | contribs) (Created page with "<c>bitOr</c> treats its arguments as integers, and computes the bitwise `or`: each bit in the result is set if the corresponding bit is set in either (or both) of the argument...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

bitOr treats its arguments as integers, and computes the bitwise `or`: each bit in the result is set if the corresponding bit is set in either (or both) of the arguments.

See also: bitAnd bitXor

Arguments

Parameter Name Default Value Meaning
i number, default 0 first integer argument
j number, default 0 second integer argument


Usage Notes

funcname may be called either as a global method, passing the sequence or map as an argument; or as a member function (defined on list, string, and map) using dot syntax, with no arguments.

Example

bitOr(14, 7)    // returns 15