caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] number_binary
@ 2002-11-30 21:38 altavillasalvatore
  2002-11-30 21:50 ` Pierre Weis
  2002-12-02 20:46 ` Issac Trotts
  0 siblings, 2 replies; 3+ messages in thread
From: altavillasalvatore @ 2002-11-30 21:38 UTC (permalink / raw)
  To: caml-list

Hi all,
Is present in ocaml a function to binary operations?

100 and 011 = 000
or
not
xor

Regards.

-------------------
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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Caml-list] number_binary
  2002-11-30 21:38 [Caml-list] number_binary altavillasalvatore
@ 2002-11-30 21:50 ` Pierre Weis
  2002-12-02 20:46 ` Issac Trotts
  1 sibling, 0 replies; 3+ messages in thread
From: Pierre Weis @ 2002-11-30 21:50 UTC (permalink / raw)
  To: altavillasalvatore; +Cc: caml-list

> Hi all,
> Is present in ocaml a function to binary operations?

Yes.

Pierre Weis

INRIA, Projet Cristal, Pierre.Weis@inria.fr, http://pauillac.inria.fr/~weis/


-------------------
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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Caml-list] number_binary
  2002-11-30 21:38 [Caml-list] number_binary altavillasalvatore
  2002-11-30 21:50 ` Pierre Weis
@ 2002-12-02 20:46 ` Issac Trotts
  1 sibling, 0 replies; 3+ messages in thread
From: Issac Trotts @ 2002-12-02 20:46 UTC (permalink / raw)
  To: OCaml Mailing List

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-12-02 20:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-30 21:38 [Caml-list] number_binary altavillasalvatore
2002-11-30 21:50 ` Pierre Weis
2002-12-02 20:46 ` Issac Trotts

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).