Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] number_binary
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Issac Trotts <ijtrotts@u...>
Subject: Re: [Caml-list] number_binary
On Sat, Nov 30, 2002 at 10:38:46PM +0100, altavillasalvatore@libero.it wrote:
> Hi all,
> Is present in ocaml a function to binary operations?
> 
> 100 and 011 = 000
> or
> not
> 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