Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
* Hashtbl: get first n keys
@ 2007-12-11  8:57 tmp123
  2007-12-11 15:40 ` [Caml-list] " Fabrice Marchant
  2007-12-11 15:42 ` Fabrice Marchant
  0 siblings, 2 replies; 3+ messages in thread
From: tmp123 @ 2007-12-11  8:57 UTC (permalink / raw)
  To: caml-list

Hello,

Please, could someone suggest a way to get "n" keys of a hash table? No 
order nor other restriction about the keys, just "n " keys existing in 
the table.

A method based on "iter" and raise and exception when limit is reached 
seems possible, but could be there are better options.

Thanks a lot.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-12-11 16:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-11  8:57 Hashtbl: get first n keys tmp123
2007-12-11 15:40 ` [Caml-list] " Fabrice Marchant
2007-12-11 15:42 ` Fabrice Marchant

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox