Browse thread
[Caml-list] "toggle" for Pervasives?
- Chris Hecker
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ 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 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