REBOL 3 Docs Guide Concepts Functions Datatypes Errors
  TOC < Back Next >   Updated: 17-Aug-2010 Edit History  

REBOL 3 Functions: complement

complement  value

Returns the one's complement value.

Arguments:

value [logic! integer! tuple! binary! bitset! typeset! image!]

See also:

negate   not   and   or   xor   charset  

Description

The complement function is used for bit-masking integer! and tuple! values or inverting bitset! values (charsets).

complement 0
-1
complement -1
0
complement 0.255.0
255.0.255
chars: complement charset "ther "
find "there it goes" chars
it goes


  TOC < Back Next > REBOL.com - WIP Wiki Feedback Admin