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.


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

See also:

negate   not   and   or   xor   charset  


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

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

  TOC < Back Next > - WIP Wiki Feedback Admin