* [Caml-list] "toggle" for Pervasives?
@ 2001-10-19 1:51 Chris Hecker
0 siblings, 0 replies; only message in thread
From: Chris Hecker @ 2001-10-19 1:51 UTC (permalink / raw)
To: caml-list
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
Chris
-------------------
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-10-19 1:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-19 1:51 [Caml-list] "toggle" for Pervasives? Chris Hecker
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox