exclusive XOR

Daniel Neri dne@REDACTED
Sun Feb 13 17:00:04 CET 2000


"Carin Gustafsson (ETX)" <carin.gustafsson@REDACTED> writes:

> Dos anyone know how to do exclusive XOR in Erlang 

If you mean exclusive-OR (I've never heard of exclusive-exclusive-OR),
there's the "bxor" operator. Like this:

,----
| Erlang (BEAM) emulator version 4.9.1 [source]
| 
| Eshell V4.9.1  (abort with ^G)
| 1> 2#0010 bxor 2#1011.
| 9
`----


Best regards,
/Daniel

-- 
Daniel Neri
dne@REDACTED



More information about the erlang-questions mailing list