From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id VAA11400; Mon, 2 Dec 2002 21:46:00 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id VAA11394 for ; Mon, 2 Dec 2002 21:45:59 +0100 (MET) Received: from pop9.ucdavis.edu (pop9.ucdavis.edu [169.237.105.19]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id gB2Kjw106227 for ; Mon, 2 Dec 2002 21:45:58 +0100 (MET) Received: from beech ([128.120.141.217]) by pop9.ucdavis.edu (8.11.6/8.11.0/IT4.6.2) with ESMTP id gB2Kjur22407 for ; Mon, 2 Dec 2002 12:45:56 -0800 (PST) Received: from ijtrotts by beech with local (Exim 3.36 #1 (Debian)) id 18IxSw-0004o3-00 for ; Mon, 02 Dec 2002 12:46:54 -0800 Date: Mon, 2 Dec 2002 12:46:54 -0800 To: OCaml Mailing List Subject: Re: [Caml-list] number_binary Message-ID: <20021202204654.GE17839@beech> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i From: Issac Trotts Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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