<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2002/12/874b6745bd639682ef07fbd80a0a640d"
  from="Issac Trotts &lt;ijtrotts@u...&gt;"
  author="Issac Trotts"
  date="2002-12-02T20:46:00"
  subject="Re: [Caml-list] number_binary"
  prev="2002/12/28fc7801c74d2b5e69dc9c4f54d9779e"
  next="2002/12/997b51ec2b0df44ae211697f2b71d18f"
  prev-in-thread="2002/11/e2c45309bc5b938db06aa3c453ff77ff"
  next-in-thread="2002/11/8bf4c646142f8757c453b1c7d247aa0f"
  prev-thread="2002/11/f006ba514c5b8f0d9cb91f926bca2a66"
  next-thread="2002/12/e69ce402ec37766285461eb0c4583d17"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="[Caml-list] number_binary">
<msg 
  url="2002/11/e2c45309bc5b938db06aa3c453ff77ff"
  from="altavillasalvatore@libero.it &lt;altavillasalvatore@l...&gt;"
  author="altavillasalvatore@libero.it"
  date="2002-11-30T21:38:48"
  subject="[Caml-list] number_binary">
<msg 
  url="2002/12/874b6745bd639682ef07fbd80a0a640d"
  from="Issac Trotts &lt;ijtrotts@u...&gt;"
  author="Issac Trotts"
  date="2002-12-02T20:46:00"
  subject="Re: [Caml-list] number_binary">
</msg>
<msg 
  url="2002/11/8bf4c646142f8757c453b1c7d247aa0f"
  from="Pierre Weis &lt;pierre.weis@i...&gt;"
  author="Pierre Weis"
  date="2002-11-30T21:50:14"
  subject="Re: [Caml-list] number_binary">
</msg>
</msg>
</thread>

<contents>
On Sat, Nov 30, 2002 at 10:38:46PM +0100, altavillasalvatore@libero.it wrote:
&gt; Hi all,
&gt; Is present in ocaml a function to binary operations?
&gt; 
&gt; 100 and 011 = 000
&gt; or
&gt; not
&gt; xor

Have a look at pervasives.mli in the standard OCaml library:

land
lor
lnot
lxor

are the functions you're looking for.

Issac


-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners

</contents>

</message>

