Rebol Programming/xor~

From Wikibooks, open books for an open world
< Rebol Programming
Jump to navigation Jump to search

USAGE:[edit | edit source]

XOR~ value1 value2 

DESCRIPTION:[edit | edit source]

Returns the first value exclusive ORed with the second.

XOR~ is an action value.

ARGUMENTS[edit | edit source]

  • value1 -- (Type: logic number char tuple binary string image)
  • value2 -- (Type: logic number char tuple binary string image)

SOURCE CODE[edit | edit source]

xor~: native[
    {Returns the first value exclusive ORed with the second.} 
    value1 [logic! number! char! tuple! binary! string! image!] 
    value2 [logic! number! char! tuple! binary! string! image!]
]