Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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: -- (:)
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:  FAQ:
To unsubscribe, mail  Archives: