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] Hashtbl.iter
[ Home ] [ Index: by date | by threads ]
[ Search: ]

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

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