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 ocaml.org.

Browse thread
[Caml-list] Hashtbl.iter
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Maya Ramanath <maya@d...>
Subject: [Caml-list] Hashtbl.iter
Hi,

The question is with regard to Hashtbl.iter.  Basically, what happens when
I'm doing an iteration on the Hashtbl and at the same time add something
new to the hashtable ?  For ex:
	let xyz ht key value =
	  (* Do something with key, value *)
	  if (some-condition-holds) then
   	    ht.add something new

	let abc ht =
	  Hashtbl.iter (xyz ht) ht

I would like to know if the new things that I added to the hashtable will
be picked up by the iterator.
			- Maya


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