English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[Caml-list] "toggle" for Pervasives?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2001-10-19 (01:51)
From: Chris Hecker <checker@d...>
Subject: [Caml-list] "toggle" for Pervasives?

I'm sure putting more stuff in Pervasives is frowned upon, but
I find myself doing this all the time and it fits well with
incr and decr:

let toggle bool_ref = bool_ref := not !bool_ref


Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr